Hibernate: No Session found for current thread

在Struts2+Hibernate+Srping项目中经常会遇到这种问题

我知道的一种情况是:

Spring的事务配置中没有配置好异常出现处的路径

 <aop:advisor pointcut="execution(* com.bjsxt.env.*.*(..))"
                     advice-ref="txAdvice"/>

 

posted @ 2014-04-04 15:35  尼玛范爷  阅读(229)  评论(0编辑  收藏  举报