记录自己遇到的错误
## Error updating database. Cause: java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: update client et AGENT_DEPART=?,AGENT_NAME =agentName,S3=? where id in ( ? , ? )
把spring和mybatis的配置文件看了一遍,然后把service,和mapper里面的方法名改了一下,重启之后问题解决。
应该就是service中的方法名字导致进行修改数据的时候不能修改
再不行的话可以再service上加上 @Transactional(readOnly=false,propagation=Propagation.REQUIRED),加在service实现类上