依照官方文档操作
1. 关闭flyway
2.修改application-dev.yml
文件
spring: datasource: druid: stat-view-servlet: enabled: true loginUsername: admin loginPassword: 123456 allow: web-stat-filter: enabled: true #打开多数据源,加上上面的就可以实现多数据源的配置 dynamic: druid: filters: stat,slf4j # 初始连接数 initialSize: 5 validationQuery: SELECT 1 FROM DUAL # 最小连接池数量 minIdle: 5 # 最大连接池数量 maxActive: 10 datasource: # 重点是将数据源指向oracle 用compatibleMode=oracle即可 master: url: jdbc:dm://192.168.1.188:30236/?schema=SYSDBA&compatibleMode=oracle&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8 username: SYSDBA password: SYSDBA driverClassName: dm.jdbc.driver.DmDriver
3.注释掉下面的语句
4.jpa新增语句
jpa: properties: hibernate: dialect: org.hibernate.dialect.Oracle8iDialect
- 如果springboot升级到2.6+,还需要修改quartz 配置
spring.quartz.jdbc.initialize-schema=never
标签:stat,jdbc,数据源,3.7,oracle,SYSDBA,true,达梦,JEECG From: https://www.cnblogs.com/mmsBlog/p/18406652