zr-codegen-sit.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
server:
port: 8005
mybatis-plus:
mapper-locations:
- classpath*:mapper/**/*Mapper.xml
type-aliases-package: com.chinagas.modules.codegen.entity
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
log-prefix: SQL
spring:
redis:
host: 172.17.56.37
port: 6379
#password: gas*123456
database: 0
timeout: 30000
datasource:
url: "jdbc:mysql://172.17.56.104:3306/chinagas?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true"
username: root
password: 123456
druid:
driverClassName: com.mysql.cj.jdbc.Driver
#初始化时建立的连接数
initialSize: 1
#最小连接池数量
minIdle: 1
#最大连接池数
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
# 配置一个连接在池中最大生存的时间,单位是毫秒
maxEvictableIdleTimeMillis: 900000
# 配置检测连接是否有效
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
webStatFilter:
enabled: true
statViewServlet:
enabled: true
# 设置白名单,不填则允许所有访问
allow:
url-pattern: /druid/*
# 控制台管理用户名和密码
#login-username: root
#login-password: 7614
filter:
stat:
enabled: true
# 慢SQL记录
log-slow-sql: true
slow-sql-millis: 1000
merge-sql: true
#防御sql注入
wall:
config:
multi-statement-allow: true
# 代码生成
codegen:
# 作者
author: lidwd
# 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
packageName: com.chinagas.modules.zjwjsb
# 自动去除表前缀,默认是false
autoRemovePre: true
# 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
tablePrefix: cc_