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.
71 lines
2.6 KiB
71 lines
2.6 KiB
spring:
|
|
application:
|
|
name: camunda
|
|
# 应用名称
|
|
cloud:
|
|
nacos:
|
|
discovery:
|
|
server-addr: ${NACOS_DISCOVERY_SERVER_ADDR:172.20.2.57:8848}
|
|
namespace: dlp
|
|
username: nacos
|
|
password: nacos
|
|
datasource:
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
driverClassName: com.mysql.cj.jdbc.Driver
|
|
druid:
|
|
# 主库数据源
|
|
master:
|
|
url: jdbc:mysql://127.0.0.1:3306/sdhxgk_datax_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
username: root
|
|
password: root
|
|
# 从库数据源
|
|
slave:
|
|
enabled: true
|
|
url: jdbc:mysql://172.20.2.87:3306/hr_new?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
username: root
|
|
password: AnknKiXiXaxNrw78
|
|
# 初始化大小,最小,最大
|
|
initial-size: 5
|
|
min-idle: 5
|
|
max-active: 20
|
|
# 配置获取连接等待超时的时间
|
|
max-wait: 60000
|
|
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒
|
|
time-between-eviction-runs-millis: 60000
|
|
# 配置一个连接在池中最小生存时间
|
|
min-evictable-idle-time-millis: 300000
|
|
validation-query: SELECT 1 FROM sys_user
|
|
test-while-idle: true
|
|
test-on-borrow: false
|
|
test-on-return: false
|
|
# 打开 PSCache,并且指定每个连接上 PSCache 的大小
|
|
pool-prepared-statements: true
|
|
max-pool-prepared-statement-per-connection-size: 20
|
|
# 配置监控统计拦截的 Filter,去掉后监控界面 SQL 无法统计,wall 用于防火墙
|
|
filters: stat,wall,log4j
|
|
# 通过 connection-properties 属性打开 mergeSql 功能;慢 SQL 记录
|
|
connection-properties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
|
|
# 配置 DruidStatFilter
|
|
web-stat-filter:
|
|
enabled: true
|
|
url-pattern: /*
|
|
exclusions: .js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*
|
|
# 配置 DruidStatViewServlet
|
|
stat-view-servlet:
|
|
enabled: false
|
|
url-pattern: /druid/*
|
|
# IP 白名单,没有配置或者为空,则允许所有访问
|
|
# allow: 127.0.0.1
|
|
# IP 黑名单,若白名单也存在,则优先使用
|
|
#deny: 192.168.31.253
|
|
# 禁用 HTML 中 Reset All 按钮
|
|
reset-enable: false
|
|
# 登录用户名/密码
|
|
login-username: sdth
|
|
login-password: Ny@20222
|
|
sql:
|
|
sql-base: select * from person_archives
|
|
lnsoft:
|
|
info:
|
|
version: 1.0.0
|
|
base-package: com.lnsoft.workflow
|
|
|