You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
4.2 KiB
92 lines
4.2 KiB
#本地和内网配置
|
|
mybatis:
|
|
configuration:
|
|
#开启控制台打印sql
|
|
#log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
# mybatis 下划线转驼峰配置,两者都可以
|
|
map-underscore-to-camel-case: true
|
|
#配置扫描
|
|
mapper-locations: classpath:mapper/*.xml
|
|
#配置xml的结果别名
|
|
type-aliases-package: com.hxgk.zxxy.model.entity
|
|
spring:
|
|
autoconfigure:
|
|
#去除durid配置
|
|
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
|
|
#MySQL druid多数据源配置(纯粹多库)
|
|
datasource:
|
|
dynamic:
|
|
datasource:
|
|
hrnew:
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
password: 9z_Bu28r1*DZ3K6@+a
|
|
#url: jdbc:mysql://127.0.0.1:3306/hengxingaoke_tes?allowPublicKeyRetrieval=true&uuseUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&tinyInt1isBit=false
|
|
url: jdbc:mysql://172.20.5.33:4000/hr_new?allowPublicKeyRetrieval=true&uuseUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&tinyInt1isBit=false
|
|
username: root
|
|
tidbintranetappplatform:
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
password: 9z_Bu28r1*DZ3K6@+a
|
|
#url: jdbc:mysql://127.0.0.1:3306/hengxingaoke_tes?allowPublicKeyRetrieval=true&uuseUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&tinyInt1isBit=false
|
|
url: jdbc:mysql://172.20.5.33:4000/app_platform?allowPublicKeyRetrieval=true&uuseUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&tinyInt1isBit=false
|
|
username: root
|
|
systemempower:
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
password: 9z_Bu28r1*DZ3K6@+a
|
|
url: jdbc:mysql://172.20.5.33:4000/system_empower?allowPublicKeyRetrieval=true&uuseUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&tinyInt1isBit=false
|
|
username: root
|
|
tidbintranetcustomerform:
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
password: 9z_Bu28r1*DZ3K6@+a
|
|
#url: jdbc:mysql://127.0.0.1:3306/hengxingaoke_tes?allowPublicKeyRetrieval=true&uuseUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&tinyInt1isBit=false
|
|
url: jdbc:mysql://172.20.5.33:4000/customer_form?allowPublicKeyRetrieval=true&uuseUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&tinyInt1isBit=false
|
|
username: root
|
|
#数据源基础配置
|
|
druid:
|
|
# 通过connectProperties属性来打开mergeSql功能;慢SQL记录
|
|
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
|
|
# 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
|
|
filters: stat,wall
|
|
initial-size: 5
|
|
max-active: 20
|
|
#指定每个连接上PSCache的大小
|
|
max-pool-prepared-statement-per-connection-size: 20
|
|
# 配置获取连接等待超时的时间
|
|
max-wait: 6000
|
|
# 配置一个连接在池中最小生存的时间,单位是毫秒
|
|
min-evictable-idle-time-millis: 300000
|
|
min-idle: 5
|
|
# 打开PSCache
|
|
pool-prepared-statements: true
|
|
test-on-borrow: false
|
|
test-on-return: false
|
|
test-while-idle: true
|
|
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
|
time-between-eviction-runs-millis: 60000
|
|
validation-query: 'SELECT 1 FROM DUAL '
|
|
#指定默认数据源(必须配置)
|
|
primary: tidbintranetappplatform
|
|
#设置严格模式,默认false不启动. 启动后在未匹配到指定数据源时候回抛出异常,不启动会使用默认数据源.
|
|
strict: false
|
|
redis:
|
|
database: 5
|
|
#host: 127.0.0.1
|
|
host: 172.20.5.57
|
|
lettuce:
|
|
pool:
|
|
max-active: 10
|
|
max-idle: 10
|
|
max-wait: -1ms
|
|
min-idle: 0
|
|
port: 6379
|
|
password: Redis+brngJ3U19@8_Z2^7a
|
|
timeout: 10000
|
|
|
|
redisPool:
|
|
port: 6379
|
|
host: 127.0.0.1
|
|
dbs: 5,14,15
|
|
password: cehh@2020
|
|
|
|
myProps:
|
|
qrcodePrefix: http://localhost:9998/#/form_table/taskListPage?
|
|
gainTableVersionFieldUrl: http://172.20.2.87:7777/customer_form/gainTableVersionField
|
|
|