异常:Write operations are not allowed in read-only mode (FlushMode.NEVER) turn your Session into FlushMode 解决办法:在配置的OpenSessionInViewFilter中加
<init-param>
<param-name>flushMode</param-name>
<param-value>AUTO</param-value>
</init-param>