ITeye博客

Write operations are not allowed in read-only mode (FlushMode.MANUAL):错误

lingsui · 2014-07-17 15:49 · 开源软件 · Markdown

ssh错误: 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.

解决方式:

web.xml增加singleSession参数值



<filter>
		<filter-name>hibernateFilter</filter-name>
		<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
		<init-param>
			<param-name>singleSession</param-name>
			<param-value>false</param-value>
		</init-param>
	</filter>


评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。