springboot 连接mycat 报 Connection is read-only

使用springboot连接mycat(底层是oracle), 查询数据正常,在写入数据的时候报
Caused by: java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed
请各位大侠帮忙看看,是否在配置文件中要加点什么,事务配置有尝试过,没有什么用。用mysql客户端操作同一个用户,是可以正常读写,配置文件如下:

spring:
http:
multipart:
enabled: true
max-file-size: 3000MB
max-request-size: 900000MB
datasource:
read-only: false
url: jdbc:mysql://172.18.58.188:8066/abmdb11
username: test
password: ENC(7BjKLN7o22PyA0JTSu/KhA==)
driver-class-name: com.mysql.jdbc.Driver
type: org.apache.tomcat.jdbc.pool.DataSource
tomcat:
validation-query: select * from dual
jpa:
show-sql: true
database-platform: org.hibernate.dialect.MySQL5Dialect
hibernate:
ddl-auto: none

事务问题啊。你的方法不支持事物,不能进行数据处理操作,只能查询。
方法前配置:@Transactional 试试

解决办法:
解决方案有2种
1.规范命名
2.删除read-only="true",但是这种方法不推荐,因为有可能会出现一些你想不到的问题,或者是对服务器的性能造成影响。

这个问题解决了吗?我也遇到这个问题,使用mycat配置了读写分离,程序连接mycat,insert时就报这个错误,同样的程序直接连接mysql数据库,就没有任何问题