swagger:
|
enabled: true
|
|
# 日志配置
|
logging:
|
config: classpath:logback-spring.xml
|
# 日志存储路径+++++++++++++++++++++++++++运维需要配置+++++++++++++++++++++++++++
|
file-location: D:\项目文件存储\log
|
|
# 数据库备份路径
|
backup:
|
# 数据库备份路径+++++++++++++++++++++++++++运维需要配置+++++++++++++++++++++++++++
|
path: D:\Download\log
|
# 数据库备份天数
|
destiny: 7
|
# 数据库备份工具路径+++++++++++++++++++++++++++运维需要配置+++++++++++++++++++++++++++
|
mysqldump: E:\JavaCode\WMS\WMS_Admin\src\main\resources
|
|
# 照片存储路径+++++++++++++++++++++++++++运维需要配置+++++++++++++++++++++++++++
|
file:
|
path: D:\项目文件存储\image
|
# 上传文件允许的扩展名
|
allowed: png,jpg,jpeg,gif
|
|
wordUrl: D:\项目文件存储\word
|
twoCode: D:\项目文件存储\two_code
|
|
mybatis-plus:
|
type-aliases-package: com.yuanchu.mom.pojo
|
mapper-locations: classpath*:/mapper/*.xml
|
configuration:
|
log-impl: #org.apache.ibatis.logging.stdout.StdOutImpl # 开启mybatis-plus日志
|
global-config:
|
worker-id: ${random.int(1,31)}
|
datacenter-id: ${random.int(1,31)}
|
|
|
|
# 数据源配置
|
spring:
|
datasource:
|
type: com.alibaba.druid.pool.DruidDataSource
|
driverClassName: com.mysql.cj.jdbc.Driver
|
# url: jdbc:mysql://localhost:3306/center-lims?useSSL=true&useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
|
url: jdbc:mysql://10.1.13.77:3306/center-lims?useSSL=true&useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
|
# url: jdbc:mysql://192.168.22.29:3306/center-lims?useSSL=true&useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
|
username: remote_user
|
# username: root
|
# password: 123456
|
password: zttZTT123!
|
# password: Dq<)dAiAczXs
|
druid:
|
# Druid数据源配置
|
initialSize: 5 # 初始连接数
|
minIdle: 10 # 最小连接池数量
|
maxActive: 20 # 最大连接池数量
|
maxWait: 60000 # 配置获取连接等待超时的时间
|
timeBetweenEvictionRunsMillis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
minEvictableIdleTimeMillis: 300000 # 配置一个连接在池中最小生存的时间,单位是毫秒
|
maxEvictableIdleTimeMillis: 900000 # 配置一个连接在池中最大生存的时间,单位是毫秒
|
validationQuery: SELECT 1 FROM DUAL # 配置检测连接是否有效
|
testWhileIdle: true #申请连接的时候检测,如果空闲时间大于timeBetweenEvictionRunsMillis,执行validationQuery检测连接是否有效。
|
testOnBorrow: false #配置从连接池获取连接时,是否检查连接有效性,true每次都检查;false不检查。做了这个配置会降低性能。
|
testOnReturn: false #配置向连接池归还连接时,是否检查连接有效性,true每次都检查;false不检查。做了这个配置会降低性能。
|
poolPreparedStatements: true #打开PsCache,并且指定每个连接上PSCache的大小
|
maxPoolPreparedStatementPerConnectionSize: 20
|
filters: stat,wall,log4j # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
|
useGlobalDataSourceStat: true #合并多个DruidDatasource的监控数据
|
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500; #通过connectProperties属性来打开mergesql功能罗慢sQL记录
|
redis:
|
# redis数据库索引(默认为0),我们使用索引为3的数据库,避免和其他数据库冲突
|
database: 0
|
# redis服务器地址(默认为localhost)
|
host: 127.0.0.1
|
# redis端口(默认为6379)
|
port: 6379
|
# redis访问密码(默认为空)
|
password: 123456
|
# password: zttZTT123!
|
# redis连接超时时间(单位毫秒)
|
timeout: 50
|
# redis连接池配置
|
pool:
|
# 最大可用连接数(默认为8,负数表示无限)
|
max-active: 20
|
# 最大空闲连接数(默认为8,负数表示无限)
|
max-idle: 8
|
# 最小空闲连接数(默认为0,该值只有为正数才有用)
|
min-idle: 0
|
# 从连接池中获取连接最大等待时间(默认为-1,单位为毫秒,负数表示无限)
|
max-wait: -1
|