mybatis 报 Connection is read-only. Queries leading to data modification are not allowed
spring+springmvc+mybatis 执行更新语句的时候提示Connection is read-only. Queries leading to data modification are not allowed
已经配置好
执行的更新方法
回答
你的事物开启了只读功能,除了读取,其他操作不可以执行的,你看你的service中是不是方法名字是带了get,find,select之类的关键字,如果是的就会被拦截。改下名字
以上是 mybatis 报 Connection is read-only. Queries leading to data modification are not allowed 的全部内容, 来源链接: utcz.com/a/35123.html