Quantcast
Channel: PayMoon贝明实验室
Viewing all articles
Browse latest Browse all 130

SpringMVC Hibernate no session found for current thread

$
0
0
配置了app-context.xml 中hibernate的各种设置,仍然报错, 关键配置:要配置txmanager, aop等,因为这是完整配置 [crayon-572d607b5a0c8345597045/] 配置 <property name="current_session_context_class">thread</property> 也不work. tricky在于配置web.xml的org.springframework.orm.hibernate4.support.OpenSessionInViewFilter 配置方法:解决了 [crayon-572d607b5a0d8243278385/]   附件:app-context.xml [crayon-572d607b5a0de393253398/] web.xml [crayon-572d607b5a0e9683226739/]  

Viewing all articles
Browse latest Browse all 130

Trending Articles