- 博客(26)
- 资源 (4)
- 收藏
- 关注
原创 hibernate.cache.auto_evict_collection_cache 报错:The instance was not associated with this session/org
org.hibernate.cache.internal.CollectionCacheInvalidator.evictCache(CollectionCacheInvalidator.java:134)]org.hibernate.TransientObjectException: The instance was not associated with this sessionhibernate.cache.auto_evict_collection_cache 报错
2016-05-19 22:50:06
3570
原创 maven常见开发配置spring,hibernate,structs,jdbc,log4j,mybatis
maven的通用配置,包含了structs,springMVC,spring,hibernate,json,mabatis,oracle,模板,缓存,日志,数据库接口配置。
2016-05-12 22:07:32
1264
原创 hibernateTemplate不再出现:spring整合报错getFlushMode is not valid without active transaction
org.springframework.orm.hibernate5.HibernateSystemException: getFlushMode is not valid without active transaction; nested exception is org.hibernate.HibernateException: getFlushMode is not valid without active transaction“spring4如何使用hibernateTem
2016-04-07 23:23:59
3673
原创 Hiberante学习=一对一+多对一+级联/N+1+缓存/事务+HQL/SQL+list/literate
Hiberante学习=一对一+多对一+级联/N+1+缓存/事务+HQL/SQL+list/literate
2016-03-28 23:22:23
930
原创 maven配置web项目
myeclipse中将maven配置的web项目部署到tomcat,错误org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/MvnTest_2]]
2016-03-20 21:28:05
13369
原创 resultSet,resultSetMetaData,list查询结果 的使用测试
hibernate 与sql 中 list,resultSet,resultSetMetaData查询结果 的使用测试
2016-03-09 22:14:55
604
原创 String,StringBuffer 以及 StringBuilder 连接多个字符串的速度比较
String,StringBuffer 以及 StringBuilder 连接多个字符串的速度比较
2015-10-30 21:42:53
676
原创 Spring MVC4.2.1 xml配置
有了jsp+servlet的基础,自然而然,SpringMVC的 基本的web.xml 配置就比较简单。以下为我的第一个搭载Spring MVC的基础项目的有关代码:基础的web.xml配置:
2015-10-13 00:33:48
3063
原创 HDU1142
WA了好久,感觉WA率都因我而升。用了bellmon,dijkstra,以及dijkstra优化(偷偷说一下dijkstra到现在才会拼写),还没有使出必杀技SPFA.想了好久才知道原来源顶点为目的地,即2,一开始总以为要求起点 1 到其他所有点的最短路。原来理解错了——应为终点 2 到各点的最短路。
2015-05-20 20:06:50
452
原创 HDU-2544单源最短路
没什么感想写的,一套便过,似乎。。#include #include #include #include #include #include #include #include #define maxn 100005#define INF 999999999using namespace std; //套模
2015-05-13 20:48:26
350
原创 HDU2647_reward-拓扑排序
真的是简单的拓扑排序应用吗??师兄们别坑啦~~wa了几次就因为数据没处理好。。思路简单,但数据的处理很微妙,本以为自己总是对的,没想到还有脱离自己方法的测试数据。。但还是受益匪浅——每每碰到WA,检查思路,暴力枚举测试数据(最无可奈何,最实用的方法)。
2015-05-11 21:29:07
517
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人