当前位置:Gxlcms > 数据库问题 > Spring Boot多数据库配置

Spring Boot多数据库配置

时间:2021-07-01 10:21:17 帮助过:5人阅读

#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多数据库配置

标签:name   ini   min   配置   data   ati   apollo   val   user   

人气教程排行