application.yml
1.4 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
server:
#配置服务器启动端口
port: 8085
spring:
application:
name: qgyun-xieyunhui
datasource:
url: jdbc:mysql://192.168.0.35:3306/qgyun-online?characterEncoding=utf-8&useSSL=false
username: root
password: qgutech.com
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
druid:
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 30000
validationQuery: SELECT 1
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxPoolPreparedStatementPerConnectionSize: 20
filters: stat,wall
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
useGlobalDataSourceStat: true
redis:
port: 6379
host: qgyun.server.redis
swagger:
enable: true
#mybatis配置别名
#mapper资源地址必须为mapper文件夹下,eg:mapper/user
mybatis:
type-aliases-package: com.qgutech.xieyunhui.qgyun.**.model
# 打印sql
logging:
level:
com.qgutech.xieyunhui.qgyun: DEBUG
#mybatis初始配置,是读取枚举类型字段
mapper:
enumAsSimpleType: true
context:
keys:
- userId
- username
- corpCode
- superAdmin
- sessionId
qgyun:
dynamicDataSource:
enabled: false
export:
system:
path: /tmp/download/