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.
ssh的版本是spring3.4.8,hibernate4.1,struts2.5 報了這個錯,百度不得其解
ssh的版本是spring3.4.8,hibernate4.1,struts2.5 報了這個錯,百度不得其解
2017-05-04
舉報
2017-07-23
沒加事務(wù)吧
2017-05-05
問題解決了,this.getHibernateTemplate().setCheckWriteOperations(false);
//設(shè)置在使用save|update|delete方法時不檢查是否只讀
2017-05-04
這是你數(shù)據(jù)庫的表主鍵設(shè)置約束,是要設(shè)成只讀還是自動增長,你沒有明確