今天在测试的时候突然发现sql语句不能修改,并且报错
Connection is read-only. Queries leading to data modification are not allowed; nested exception is java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed
经搜索在调用sql语句的service层上添加了一个注解@Transactional(readOnly = false)
测试之后没有问题了