详细的步骤引自
https://blog.csdn.net/itCatface/article/details/127381329
我这里只是针对类似我这种配置进行补充
spring:
# redis 配置
redis:
# 地址
host: localhost
# 端口,默认为6379
port: 6379
datasource:
type: com.alibaba.druid.pool.DruidDataSource
druid:
# 主库数据源
master:
url: jdbc:mysql://你的服务端ip/kk-ruoyi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: ...
password: ...
# 从库数据源
his:
# 从数据源开关/默认关闭
enabled: true
url: jdbc:wrap-jdbc:filters=encoding:jdbc:oracle:thin:@//你的服务端oracle的ip:1521/histest
username: ...
password: ...
driver-class-name: oracle.jdbc.driver.OracleDriver
connection-properties: serverEncoding=ISO-8859-1;clientEncoding=GBK