摘要:
报错:Write operations are not allowed in read-only mode (FlushMode.NEVER) - turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition解决方法:在方法体中加入getHibernateTemplate().setFlushMode(HibernateTemplate.FLUSH_EAGER);解决另附未测试方法方法2:重写OpenSessionInViewFilter12345678 阅读全文
摘要:
在Eclilpse中修改启动参数,在VM arguments 加入-Xms500m -Xmx800m(视情况设置大小,不唯一),设置如下图所示 阅读全文