java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed

错误

Error updating database.  Cause: java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed
### The error may exist in file [E:\javaproject\Demo11\spring-01-hellospring\spring-09-transaction\target\classes\com\kuang\mapper\UserMapper.xml]
### The error may involve com.kuang.mapper.UserMapper.addUser-Inline

 

错误代码

java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed

 

 解决办法:

    直接去掉

上一篇:统计一致字符串的数目


下一篇:向阿里云的mysql8.0写数据的时候出现Public Key Retrieval is not allowed