Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
project-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郭燕飞
project-template
Commits
1327c49e
Commit
1327c49e
authored
Nov 23, 2018
by
郭燕飞
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改模板配置项,升级ext
parent
40d54a90
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
29 deletions
+4
-29
application.properties
...plate/bizModule/src/main/resources/application.properties
+0
-25
build.gradle
service-template/build.gradle
+2
-2
build.gradle
web-template/build.gradle
+2
-2
No files found.
service-template/bizModule/src/main/resources/application.properties
View file @
1327c49e
...
...
@@ -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
service-template/build.gradle
View file @
1327c49e
buildscript
{
ext
{
springBootVersion
=
"1.5.1
5
.RELEASE"
springBootVersion
=
"1.5.1
6
.RELEASE"
}
repositories
{
mavenLocal
()
...
...
@@ -50,7 +50,7 @@ subprojects {
dependencies
{
imports
{
mavenBom
"cn.com.duiba.boot:spring-boot-ext-dependencies:1.2.2
27
"
mavenBom
"cn.com.duiba.boot:spring-boot-ext-dependencies:1.2.2
42
"
mavenBom
"org.springframework.cloud:spring-cloud-dependencies:Edgware.SR4"
}
}
...
...
web-template/build.gradle
View file @
1327c49e
...
...
@@ -3,7 +3,7 @@ description = "{artifactId}"
apply
plugin:
"org.sonarqube"
buildscript
{
ext
{
springBootVersion
=
"1.5.1
5
.RELEASE"
springBootVersion
=
"1.5.1
6
.RELEASE"
}
repositories
{
mavenLocal
()
...
...
@@ -63,7 +63,7 @@ dependencyManagement {
dependencies
{
imports
{
mavenBom
"cn.com.duiba.boot:spring-boot-ext-dependencies:1.2.2
27
"
mavenBom
"cn.com.duiba.boot:spring-boot-ext-dependencies:1.2.2
42
"
mavenBom
"org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
mavenBom
"org.springframework.cloud:spring-cloud-dependencies:Edgware.SR4"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment