码迷,mamicode.com
首页 > 数据库 > 详细

Spring Boot多数据库配置

时间:2017-06-28 13:04:55      阅读:203      评论:0      收藏:0      [点我收藏+]

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

#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   

原文地址:http://www.cnblogs.com/mkxzy/p/7089085.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!