springboot 多数据源 dataSource or da
2022-06-18 本文已影响0人
一介书生独醉江湖
# 单数据源;
spring:
datasource:
fq:
url: jdbc:mysql:......
username: ******
password: ******
# 多数据源时,url 需要换成jdbc-url 即可;
spring:
datasource:
fq:
jdbc-url: jdbc:mysql:......
username: ******
password: ******