错误
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.
解决方案:
a.注解开发中:
在对应的service层中添加 注解 @Transactional
b.web.xml配置里添加配置
这种方式我没试 所以没附代码 ,这个代码 可以百度到 .啧啧