优化配置文件
This commit is contained in:
parent
3f632afe34
commit
b75db00cc4
|
@ -23,22 +23,6 @@
|
||||||
<build>
|
<build>
|
||||||
<finalName>${project.artifactId}</finalName>
|
<finalName>${project.artifactId}</finalName>
|
||||||
<plugins>
|
<plugins>
|
||||||
<!-- <plugin>-->
|
|
||||||
<!-- <groupId>org.apache.maven.plugins</groupId>-->
|
|
||||||
<!-- <artifactId>maven-compiler-plugin</artifactId>-->
|
|
||||||
<!-- <version>3.8.1</version>-->
|
|
||||||
<!-- <configuration>-->
|
|
||||||
<!-- <source>${java.version}</source>-->
|
|
||||||
<!-- <target>${java.version}</target>-->
|
|
||||||
<!-- <annotationProcessorPaths>-->
|
|
||||||
<!-- <path>-->
|
|
||||||
<!-- <groupId>org.mapstruct</groupId>-->
|
|
||||||
<!-- <artifactId>mapstruct-processor</artifactId>-->
|
|
||||||
<!-- <version>${mapstruct.version}</version>-->
|
|
||||||
<!-- </path>-->
|
|
||||||
<!-- </annotationProcessorPaths>-->
|
|
||||||
<!-- </configuration>-->
|
|
||||||
<!-- </plugin>-->
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
|
|
@ -7,14 +7,9 @@ spring:
|
||||||
#timeout: 6000ms # 连接超时时长(毫秒)
|
#timeout: 6000ms # 连接超时时长(毫秒)
|
||||||
datasource:
|
datasource:
|
||||||
druid:
|
druid:
|
||||||
# MySQL
|
|
||||||
url: jdbc:mysql://localhost:3306/fast_boot?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
|
url: jdbc:mysql://localhost:3306/fast_boot?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
|
||||||
username: baba
|
username: fast
|
||||||
password: 123456
|
password: 123456
|
||||||
# Oracle
|
|
||||||
# url: jdbc:oracle:thin:@localhost:1521:xe
|
|
||||||
# username: fast_boot
|
|
||||||
# password: 123456
|
|
||||||
initial-size: 5
|
initial-size: 5
|
||||||
min-idle: 10
|
min-idle: 10
|
||||||
max-active: 20
|
max-active: 20
|
||||||
|
@ -22,16 +17,14 @@ spring:
|
||||||
min-evictable-idle-time-millis: 600000
|
min-evictable-idle-time-millis: 600000
|
||||||
max-evictable-idle-time-millis: 900000
|
max-evictable-idle-time-millis: 900000
|
||||||
validation-query: SELECT 1
|
validation-query: SELECT 1
|
||||||
# Oracle数据库
|
|
||||||
#validation-query: SELECT 1 FROM DUAL
|
|
||||||
test-on-borrow: false
|
test-on-borrow: false
|
||||||
test-on-return: false
|
test-on-return: false
|
||||||
test-while-idle: true
|
test-while-idle: true
|
||||||
stat-view-servlet:
|
stat-view-servlet:
|
||||||
enabled: true
|
enabled: true
|
||||||
url-pattern: /druid/*
|
url-pattern: /druid/*
|
||||||
#login-username: admin
|
login-username: admin
|
||||||
#login-password: admin
|
login-password: admin
|
||||||
filter:
|
filter:
|
||||||
stat:
|
stat:
|
||||||
log-slow-sql: true
|
log-slow-sql: true
|
||||||
|
|
|
@ -10,14 +10,9 @@ spring:
|
||||||
#timeout: 6000ms # 连接超时时长(毫秒)
|
#timeout: 6000ms # 连接超时时长(毫秒)
|
||||||
datasource:
|
datasource:
|
||||||
druid:
|
druid:
|
||||||
#MySQL
|
|
||||||
url: jdbc:mysql://localhost:3306/fast_boot?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
|
url: jdbc:mysql://localhost:3306/fast_boot?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
|
||||||
username: baba
|
username: fast
|
||||||
password: 123456
|
password: 123456
|
||||||
#Oracle
|
|
||||||
# url: jdbc:oracle:thin:@localhost:1521:xe
|
|
||||||
# username: fast_boot
|
|
||||||
# password: 123456
|
|
||||||
initial-size: 5
|
initial-size: 5
|
||||||
min-idle: 10
|
min-idle: 10
|
||||||
max-active: 20
|
max-active: 20
|
||||||
|
@ -25,16 +20,14 @@ spring:
|
||||||
min-evictable-idle-time-millis: 600000
|
min-evictable-idle-time-millis: 600000
|
||||||
max-evictable-idle-time-millis: 900000
|
max-evictable-idle-time-millis: 900000
|
||||||
validation-query: SELECT 1
|
validation-query: SELECT 1
|
||||||
#Oracle数据库
|
|
||||||
#validation-query: SELECT 1 FROM DUAL
|
|
||||||
test-on-borrow: false
|
test-on-borrow: false
|
||||||
test-on-return: false
|
test-on-return: false
|
||||||
test-while-idle: true
|
test-while-idle: true
|
||||||
stat-view-servlet:
|
stat-view-servlet:
|
||||||
enabled: true
|
enabled: true
|
||||||
url-pattern: /druid/*
|
url-pattern: /druid/*
|
||||||
#login-username: admin
|
login-username: admin
|
||||||
#login-password: admin
|
login-password: admin
|
||||||
filter:
|
filter:
|
||||||
stat:
|
stat:
|
||||||
log-slow-sql: true
|
log-slow-sql: true
|
||||||
|
|
|
@ -7,14 +7,9 @@ spring:
|
||||||
#timeout: 6000ms # 连接超时时长(毫秒)
|
#timeout: 6000ms # 连接超时时长(毫秒)
|
||||||
datasource:
|
datasource:
|
||||||
druid:
|
druid:
|
||||||
#MySQL
|
|
||||||
url: jdbc:mysql://mysql:3306/fast_boot?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
|
url: jdbc:mysql://mysql:3306/fast_boot?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
|
||||||
username: baba
|
username: fast
|
||||||
password: jg5RPEZDcuFC2BX460LzAMlvdf3T9eWy
|
password: 123456
|
||||||
#Oracle
|
|
||||||
# url: jdbc:oracle:thin:@localhost:1521:xe
|
|
||||||
# username: fast_boot
|
|
||||||
# password: 123456
|
|
||||||
initial-size: 1
|
initial-size: 1
|
||||||
min-idle: 1
|
min-idle: 1
|
||||||
max-active: 1
|
max-active: 1
|
||||||
|
@ -22,16 +17,14 @@ spring:
|
||||||
min-evictable-idle-time-millis: 600000
|
min-evictable-idle-time-millis: 600000
|
||||||
max-evictable-idle-time-millis: 900000
|
max-evictable-idle-time-millis: 900000
|
||||||
validation-query: SELECT 1
|
validation-query: SELECT 1
|
||||||
#Oracle数据库
|
|
||||||
#validation-query: SELECT 1 FROM DUAL
|
|
||||||
test-on-borrow: false
|
test-on-borrow: false
|
||||||
test-on-return: false
|
test-on-return: false
|
||||||
test-while-idle: true
|
test-while-idle: true
|
||||||
stat-view-servlet:
|
stat-view-servlet:
|
||||||
enabled: true
|
enabled: true
|
||||||
url-pattern: /druid/*
|
url-pattern: /druid/*
|
||||||
#login-username: admin
|
login-username: admin
|
||||||
#login-password: admin
|
login-password: admin
|
||||||
filter:
|
filter:
|
||||||
stat:
|
stat:
|
||||||
log-slow-sql: true
|
log-slow-sql: true
|
||||||
|
|
Loading…
Reference in New Issue
Block a user