application-test.yml
1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
spring:
datasource:
url: jdbc:mysql://192.168.1.47:3306/fw_erp?characterEncoding=UTF-8
# 只有下面三个是必填项(使用内嵌数据库的话这三个也可以不用填,会使用默认配置),其他配置不是必须的
username: root
password: '07141105'
driver-class-name: com.mysql.jdbc.Driver
initial-size: 2
max-active: 30
min-idle: 2
max-wait: 1234
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 5
validation-query: SELECT 1 FROM DUAL
validation-query-timeout: 1
test-on-borrow: true
test-on-return: true
test-while-idle: true
time-between-eviction-runs-millis: 10000
min-evictable-idle-time-millis: 30001
async-close-connection-enable: true
aop-patterns: cn.fw.erp.dao.*
# 自定义StatFilter 配置 其他 Filter 不再演示
filter:
stat:
db-type: mysql
log-slow-sql: true
slow-sql-millis: 2000
mybatis:
type-aliases-package: cn.fw.erp.domain cn.fw.data.base.db.query
mapper-locations: classpath:mapper/*.xml
auth:
aes:
key: bN7DVjFMJPcoWDcR
ignore:
start-with: /user/*,/role/*,/user/login,/v2/api-docs,/swagger-resources/**
logging:
path: ${dynamic.log.path}
level:
root: info