原文:Could not obtain transaction-synchronized Session for current thread

在servlet context中增加 lt context:annotation config gt 有了 lt context:component scan base package XXX.XXX gt 就不用写这个了 lt tx:annotation driven gt 还要增加xmlns xmlns:tx http: www.springframework.org schema tx h ...

2014-09-19 08:56 0 20005 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM