Chinaunix首页 | 论坛 | 博客
  • 博客访问: 53591
  • 博文数量: 25
  • 博客积分: 1415
  • 博客等级: 上尉
  • 技术积分: 270
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-23 13:18
文章分类

全部博文(25)

文章存档

2008年(1)

2007年(3)

2006年(21)

我的朋友
最近访客

分类: Java

2006-05-30 13:37:59

关键是StartupListener.java
代码中有提示 如下
Keep in mind that this listener is executed outside of OpenSessionInViewFilter,
 * so if you're using Hibernate you'll have to explicitly initialize all loaded data at the
 * Dao or service level to avoid LazyInitializationException. Hibernate.initialize() works
 * well for doing this.
 
下面的链接中提到三种方法
 
对于以Struts为Web框架的情况
阅读(688) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~