-
Notifications
You must be signed in to change notification settings - Fork 7
/
exam-service-development.yml
75 lines (70 loc) · 1.61 KB
/
exam-service-development.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
spring:
profiles: development
application:
name: exam-service
# 数据源
datasource:
name: test
url: jdbc:mysql://liangshanguang.wang:3306/exam?useUnicode=true&characterEncoding=utf-8
username: root
password: 19921023wr
type: com.alibaba.druid.pool.DruidDataSource #使用drudi数据源
driver-class-name: com.mysql.jdbc.Driver
filters: stat,wall,log4j
maxActive: 200
initialSize: 1
maxWait: 60000
minIdle: 1
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: select 'x'
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxOpenPreparedStatements: 20
# redis
redis:
database: 0
host: localhost
port: 6379
password:
pool:
max-active: 8
max-wait: -1
max-idle: 8
min-idle: 0
timeout: 0
mybatis:
mapperLocations: classpath:mapper/*.xml
configLocation: classpath:/mybatis-config.xml
pagehelper:
helperDialect: mysql
reasonable: true
supportMethodsArguments: true
params: count=countSql
# 配置运行端口号
server:
port: 8870
# 注册中心配置
eureka:
instance:
hostname: localhost
port: 8761
client:
serviceUrl:
defaultZone: http://${eureka.instance.hostname}:${eureka.instance.port}/eureka/
# 禁用 security 基本配置
security:
basic:
enabled: false
#logback配置,开发模式日志级别为 INFO
logging:
level:
root: INFO
org:
springframework:
security: DEBUG
com:
tangyi:
mapper: TRACE