为了账号安全,请及时绑定邮箱和手机立即绑定

添加拦截器后出错

添加拦截器后,对部门表格进行添加、修改等操作的时候会报错误:HTTP Status 500 - Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition.怎么弄啊啊 啊

正在回答

1 回答

<filter>  
    <filter-name>OpenSessionInViewFilter</filter-name>  
    <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>  
    <init-param>  
        <param-name>flushMode</param-name>  
        <param-value>AUTO</param-value>  
    </init-param>  
</filter>  
<filter-mapping>  
    <filter-name>OpenSessionInViewFilter</filter-name>  
    <url-pattern>/*</url-pattern>  
</filter-mapping>


1 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

添加拦截器后出错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信