OpenSessionInViewFilter配置导致数据库不能连接
最近因为项目需要,在hibernate中加入了many-to-one对象映射,由于要使用延迟加载,在web.xml中配置了spring的支持工具,配置如下:
<filter>
<filter-name>OpenSessionInViewFilter</filter-name>
<filter-class>or...
原创
2018-09-14 16:04:21 ·
275 阅读 ·
0 评论