Connection is read-only. Queries leading to data modification are not allowed

事务配置在service层,修改service方法的开头,改成配置文件中不是read-only的那种 

applicationContext.xml 中配置

<prop key="create*">PROPAGATION_REQUIRED</prop>

原文地址:https://www.cnblogs.com/hym-pcitc/p/5652710.html