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