deploy-ease-backend/bin/nacos-server-2.3.0/data/tenant-config-data/iscmtech-dev/common/db.yml
2024-08-14 13:23:50 +08:00

67 lines
2.7 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

spring:
redis:
host: 117.78.26.85
port: 6383
password: Redis@Aps123456
lettuce:
pool:
max-active: 300
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://192.168.2.201:3308/iscmtech-dev?characterEncoding=UTF-8&useUnicode=true&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=GMT%2B8&allowMultiQueries=true
username: iscmtech-dev
password: iscmtech-dev
###################以下为druid增加的配置###########################
type: com.alibaba.druid.pool.DruidDataSource
druid:
#初始化大小
initialSize: 7
#最小值
minIdle: 7
#最大值
maxActive: 10
#最大等待时间配置获取连接等待超时时间单位都是毫秒ms
maxWait: 28000
#配置间隔多久才进行一次检测,检测需要关闭的空闲连接
timeBetweenEvictionRunsMillis: 60000
#配置一个连接在池中最小生存的时间
minEvictableIdleTimeMillis: 300000
#用来检测连接是否有效的sql 必须是一个查询语句
#mysql中为 select 'x'
#oracle中为 select 1 from dual
validationQuery: select 'x'
#申请连接的时候检测如果空闲时间大于timeBetweenEvictionRunsMillis执行validationQuery检测连接是否有效。
testWhileIdle: true
#申请连接时会执行validationQuery检测连接是否有效,开启会降低性能,默认为true
testOnBorrow: false
#归还连接时会执行validationQuery检测连接是否有效,开启会降低性能,默认为true
testOnReturn: false
poolPreparedStatements: true
# 配置监控统计拦截的filters去掉后监控界面sql无法统计
#'wall'用于防火墙SpringBoot中没有log4j
filters: stat,config
#最大PSCache连接
#当值大于0时poolPreparedStatements会自动修改为true
maxPoolPreparedStatementPerConnectionSize: 20
useGlobalDataSourceStat: true
# 通过connectProperties属性来打开mergeSql功能慢SQL记录
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500;config.decrypt=false;config.decrypt.key=123456
# 配置StatFilter
web-stat-filter:
#默认为false设置为true启动
enabled: true
url-pattern: "/*"
exclusions: "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*"
#配置StatViewServlet
stat-view-servlet:
url-pattern: "/druid/*"
#允许那些ip
allow:
login-username: juyunshuzi
login-password: juyunshuzi2020
#禁止那些ip
deny: 192.168.11.102
#是否可以重置
reset-enable: true
#启用
enabled: true