Tag Archives: java.sql.SQLException: Connection is readonly. Queries leading to data modification are not allowed

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

error

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

error code

Solution:

Directly remove