- 博客(2)
- 收藏
- 关注
原创 Hibernate no Session
could not initialize proxy - no Session 在中这错误很常见,字面意义就是不能被初始化,因为session已经关闭了。 简单理解就是因为,你使用了lazy=true,这样hibernate在从数据库中调数据的时候是不会把关联的对象查出来的,而是保存一个获取值得方法,在你使用getXXX()调用的时候,hiberante会利用这个保存的方法去从数据库中取数
2012-03-26 15:53:26 269
原创 ssh 整合需要的类
//struts2过滤器 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter spef; //spring容器中对象出事化监听器 org.springframework.web.context.ContextLoaderListener cll; //用来找寻action name对应在sp
2012-03-26 15:47:37 217
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人