lxt008

 

No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here的解决方法

在SSH中经常抛出如下异常
Exception thrown: java.lang.IllegalStateException:
No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here

解决方法如下:

(1)必须加入事务代理!!!

(2)在"transactionAttributes"配置所有方法,缺一个方法都不行!!!

posted on 2008-05-04 13:00 江南散人 阅读(7144) 评论(1)  编辑  收藏

评论

# re: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here的解决方法 2009-06-09 10:27 cw

fang P  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航:
 

导航

统计

常用链接

留言簿(1)

随笔分类

随笔档案

文章档案

搜索

最新评论

阅读排行榜

评论排行榜