Commit 1327c49e authored by 郭燕飞's avatar 郭燕飞 💬

修改模板配置项,升级ext

parent 40d54a90
......@@ -5,28 +5,3 @@ server.tomcat.uri-encoding=UTF-8
#logging
logging.path=${user.home}/logs/{artifactId}
# 数据源配置
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.type=org.apache.commons.dbcp2.BasicDataSource
spring.datasource.url=jdbc:mysql://dev.config.duibar.com:3306/demo
spring.datasource.username=dev
spring.datasource.password=dev_fas015
spring.datasource.dbcp2.max-total=30
spring.datasource.dbcp2.initial-size=5
spring.datasource.dbcp2.max-idle=3
spring.datasource.dbcp2.min-idle=3
spring.datasource.dbcp2.max-wait-millis=30000
spring.datasource.dbcp2.remove-abandoned-on-borrow=true
spring.datasource.dbcp2.remove-abandoned-on-maintenance=true
# 这个参数配置后,一个连接被借出连接池超过这个时间不归还会认为是泄露的链接
spring.datasource.dbcp2.remove-abandoned-timeout=60
spring.datasource.dbcp2.log-abandoned=true
spring.datasource.dbcp2.test-on-borrow=false
# 多久testWhileIdle
spring.datasource.dbcp2.time-between-eviction-runs-millis=90000
# 池中的连接空闲多久后被回收,默认值就是30分钟。
spring.datasource.dbcp2.min-evictable-idle-time-millis=600000
spring.datasource.dbcp2.validation-query=SELECT 1
spring.datasource.dbcp2.test-while-idle=true
spring.datasource.dbcp2.connection-init-sqls=set names utf8mb4;
\ No newline at end of file
buildscript {
ext {
springBootVersion = "1.5.15.RELEASE"
springBootVersion = "1.5.16.RELEASE"
}
repositories {
mavenLocal()
......@@ -50,7 +50,7 @@ subprojects {
dependencies {
imports {
mavenBom "cn.com.duiba.boot:spring-boot-ext-dependencies:1.2.227"
mavenBom "cn.com.duiba.boot:spring-boot-ext-dependencies:1.2.242"
mavenBom "org.springframework.cloud:spring-cloud-dependencies:Edgware.SR4"
}
}
......
......@@ -3,7 +3,7 @@ description = "{artifactId}"
apply plugin: "org.sonarqube"
buildscript {
ext {
springBootVersion = "1.5.15.RELEASE"
springBootVersion = "1.5.16.RELEASE"
}
repositories {
mavenLocal()
......@@ -63,7 +63,7 @@ dependencyManagement {
dependencies {
imports {
mavenBom "cn.com.duiba.boot:spring-boot-ext-dependencies:1.2.227"
mavenBom "cn.com.duiba.boot:spring-boot-ext-dependencies:1.2.242"
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
mavenBom "org.springframework.cloud:spring-cloud-dependencies:Edgware.SR4"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment