application-dev.yml
2.21 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
server:
port: 8030
tomcat.max-threads: 50
tomcat.uri-encoding: UTF-8
eureka:
instance:
hostname: fw-marketing-man # 设置当前实例的主机名称
prefer-ip-address: true #访问路径变更为IP
lease-renewal-interval-in-seconds: 5 #心跳间隔
lease-expiration-duration-in-seconds: 5 #如果现在超过了5秒的间隔
client:
serviceUrl:
defaultZone: http://feewee:1234qwer@deveureka.feewee.cn/eureka/
fetch-registry: true
spring:
application:
name: fw-marketing-man
datasource:
url: jdbc:mysql://192.168.0.8:3306/fw_rp?characterEncoding=UTF-8
# 只有下面三个是必填项(使用内嵌数据库的话这三个也可以不用填,会使用默认配置),其他配置不是必须的
username: root
password: mysql@pwd123
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.third.pstn.dao.*
# 自定义StatFilter 配置 其他 Filter 不再演示
filter:
stat:
db-type: mysql
log-slow-sql: true
slow-sql-millis: 2000
redis:
host: 192.168.0.8
http:
multipart:
max-file-size: 100Mb
max-request-size: 100Mb
mybatis:
type-aliases-package: cn.fw.rp.db cn.fw.data.base.db.query
mapper-locations: classpath:mapper/*.xml
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
jedis:
pool:
host: 192.168.0.8
# host: 127.0.0.1
port: 6379
config:
maxActive: 50
maxIdle: 20
minIdle: 3
maxWaitMillis: 1000
testOnBorrow: false
testOnReturn: false
testWhileIdle: true
auth:
aes:
key: bN7DVjFMJPcoWDcR
ignore:
start-with: /user/*,/role/*,/user/login,/v2/api-docs,/swagger-resources/**
logging:
# path: ${dynamic.log.path}
level:
root: info
upload:
path: F:/RP_UPLOAD