Spring Boot多数据库配置
Posted 涉谷猫猫
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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多数据库配置的主要内容,如果未能解决你的问题,请参考以下文章