首页 > 代码库 > Spring Boot多数据库配置
Spring Boot多数据库配置
#datasource
spring.datasource.url=jdbc:mysql://120.26.246.185:3306/gaea?&useSSL=false
spring.datasource.username=xiezhiyan
spring.datasource.password=yilvxzy
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.max-idle=10
spring.datasource.max-wait=10000
spring.datasource.min-idle=5
spring.datasource.initial-size=5
spring.datasource.validation-query=SELECT 1
spring.datasource.test-on-borrow=false
spring.datasource.test-while-idle=true
spring.datasource.time-between-eviction-runs-millis=18800
#\u5BFC\u6E38\u6570\u636E\u5E93
spring.datasource.guide.url=jdbc:mysql://120.26.246.185:3306/apollo?&useSSL=false
spring.datasource.guide.username=xiezhiyan
spring.datasource.guide.password=yilvxzy
spring.datasource.guide.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.guide.max-idle=10
spring.datasource.guide.max-wait=10000
spring.datasource.guide.min-idle=5
spring.datasource.guide.initial-size=5
spring.datasource.guide.validation-query=SELECT 1
spring.datasource.guide.test-on-borrow=false
spring.datasource.guide.test-while-idle=true
spring.datasource.guide.time-between-eviction-runs-millis=18800
Spring Boot多数据库配置