<filter>
<filter-name>SpringOpenSessionInViewFilter</filter-name>
<filter-class>org.springframework.orm.hibernate4.support.OpenSessionInViewFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>SpringOpenSessionInViewFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
在web.xml中添加
解决了 这个问题 Could not obtain transaction-synchronized Session for current thread
Could not obtain transaction-synchronized Session for current thread
最新推荐文章于 2023-06-09 23:07:53 发布