-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin-dev.yml
95 lines (87 loc) · 2.63 KB
/
admin-dev.yml
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
89
90
91
92
93
94
95
server:
port: 8083
spring:
application:
name: admin
mvc:
favicon:
enabled: false #favicon设置favicon设置
datasource:
driverClassName: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://118.25.7.241:3306/myblog?useUnicode=true&characterEncoding=utf-8&useSSL=false
username: root
password: fanxiaoyi
#Druid连接池的配置信息
type: com.alibaba.druid.pool.DruidDataSource
druid:
initial-size: 5
min-idle: 5
max-active: 20
max-wait: 60000 #配置获取连接等待超时的时间
filters: stat,wall,log4j # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
time-between-eviction-runs-millis: 60000 #配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
min-evictable-idle-time-millis: 300000 #配置一个连接在池中最小生存的时间,单位是毫秒
#检测连接是否有效的sql
validation-query: SELECT 'x'
test-while-idle: true
test-on-borrow: false
test-on-return: false
#PSCache Mysql下建议关闭
pool-prepared-statements: false
max-pool-prepared-statement-per-connection-size: -1
thymeleaf:
cache: false
mode: LEGACYHTML5
redis:
host: 118.25.7.241
password: fanxiaoyi
timeout: 3000
#database: 1
port: 6379
jedis:
pool:
max-idle: 8
max-wait: -1
min-idle: 0
servlet:
multipart:
max-request-size: 10
max-file-size: 10
# 配置WallFilte
#spring: datasource: druid: filter: wall: enabled: true
#spring: datasource: druid: filter: wall: db-type: mysql
#spring: datasource: druid: filter: wall: config: delete-allow: false
#spring: datasource: druid: filter: wall: config: drop-table-allow: false
#spring: datasource: druid: filter: wall: config: create-table-allow: false
#spring: datasource: druid: filter: wall: config: alter-table-allow: false
#spring: datasource: druid: filter: wall: config: truncate-allow: false
#pagehelper插件
pagehelper:
helper-dialect: mysql
reasonable: true
support-methods-arguments: true
params: count
#打印sql语句
#logging: level: com: zhy: mapper: ArticleLikesMapper: debug
eureka:
client:
service-url:
defaultZone: http://eureka1:2001/eureka, http://eureka2:2002/eureka
feign:
hystrix:
enabled: true
management:
endpoints:
web:
exposure:
include: hystrix.stream
---
spring:
profiles: pro
redis:
host: 172.17.0.13
password: fanxiaoyi
eureka:
client:
service-url:
defaultZone: http://172.17.0.13:2001/eureka