-
Notifications
You must be signed in to change notification settings - Fork 8
/
main-data-dev.yml
60 lines (60 loc) · 1.83 KB
/
main-data-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
server:
port: 18002
# 数据源配置
spring:
datasource:
druid:
url: jdbc:mysql://${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/main-data?useUnicode=true&characterEncoding=UTF-8&useSSL=false
username: fangp
password: "000000"
driver-class-name: com.mysql.jdbc.Driver
max-active: 20
initial-size: 1
max-wait: 60000
min-idle: 1
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
validation-query: select 'x'
test-while-idle: true
test-on-borrow: false
test-on-return: false
pool-prepared-statements: true
max-open-prepared-statements: 20
filters: stat, wall
# 监控配置
web-stat-filter:
url-pattern: /*
exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"
stat-view-servlet:
url-pattern: /druid/*
reset-enable: false
login-username: sysadmin
login-password: "000000"
redis:
database: 0
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}
rabbitmq:
host: localhost
port: 5672
username: fangp
password: '000000'
# 权限配置
security:
ignored: |
/css/**,/js/**,/favicon.ico,/webjars/**,/images/**,
/hystrix.stream/**,/info,/error,/health,/env,/metrics,/trace,/dump,
/jolokia,/configprops,/activiti,/logfile,/refresh,/flyway,/liquibase,/loggers,
/user/name/**,/user/phone/**,/role/user/**,/menu/user/*,/client/all
oauth2:
resource:
jwt:
key-uri: http://${AUTH_CENTER_HOST:localhost}:${AUTH_CENTER_PORT:18001}/auth/oauth/token_key
id: ${spring.application.name}
serviceId: ${spring.application.name}
# mybatis 配置
mybatis:
type-aliases-package: com.peng.main.api.mapper.model
mapper-locations: classpath:mybatis/mapper/*.xml
logging:
file: logs/main-data.log