Skip to content

Commit 4c740fd

Browse files
committed
更新配置
1 parent 4931b2a commit 4c740fd

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SpringBootGenerator(SpringBoot1.5版)
22

3-
> SpringBoot1.5版(SpringBoot2.0版切换主分支(master))
3+
> SpringBoot1.5版(SpringBoot2.1版切换主分支(master))
44
> 参考:[https://github.com/lihengming/spring-boot-api-project-seed](https://github.com/lihengming/spring-boot-api-project-seed)
55
66
### 项目相关

src/main/resources/application.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,20 @@ spring:
99
datasource:
1010
type: com.alibaba.druid.pool.DruidDataSource
1111
driver-class-name: com.mysql.jdbc.Driver
12-
filters: stat
13-
maxActive: 20
14-
initialSize: 1
15-
maxWait: 60000
16-
minIdle: 1
17-
timeBetweenEvictionRunsMillis: 60000
18-
minEvictableIdleTimeMillis: 300000
19-
validationQuery: select 'x'
20-
testWhileIdle: true
21-
testOnBorrow: false
22-
testOnReturn: false
23-
poolPreparedStatements: true
24-
maxOpenPreparedStatements: 20
12+
druid:
13+
filters: stat
14+
maxActive: 20
15+
initialSize: 1
16+
maxWait: 60000
17+
minIdle: 1
18+
timeBetweenEvictionRunsMillis: 60000
19+
minEvictableIdleTimeMillis: 300000
20+
validationQuery: select 'x'
21+
testWhileIdle: true
22+
testOnBorrow: false
23+
testOnReturn: false
24+
poolPreparedStatements: true
25+
maxOpenPreparedStatements: 20
2526
# 404交给异常处理器处理
2627
mvc:
2728
throw-exception-if-no-handler-found: true

0 commit comments

Comments
 (0)