chsm-server/chsm-web-manage/src/main/resources/application.yml
2024-11-01 13:49:40 +08:00

152 lines
4.6 KiB
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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.

server:
port: 89
tomcat:
uri-encoding: UTF-8
threads:
max: 1000
min-spare: 30
spring:
main:
allow-circular-references: true
# 数据源
datasource:
driverClassName: dm.jdbc.driver.DmDriver
url: jdbc:dm://172.16.17.236:5236?schema=SSP&useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&useSSL=true&characterEncoding=UTF-8
username: SUNYARD
# Jasypt加密 可到common-utils中找到JasyptUtil加解密工具类生成加密结果 格式为ENC(加密结果)
password: 123456
hikari:
minimum-idle: 3
maximum-pool-size: 10
idle-timeout: 600000 # 空闲连接的最大等待时间,单位为毫秒 (10 分钟)
max-lifetime: 1800000 # 连接池中连接的最大存活时间,单位为毫秒 (30 分钟)
connection-timeout: 30000 # 获取连接的超时时间,单位为毫秒 (30 秒)
leak-detection-threshold: 2000 # 连接泄漏检测阈值,单位为毫秒 (2 秒)
# 连接测试配置,确保连接有效性
connection-test-query: SELECT 1
validation-timeout: 5000 # 验证连接的超时时间,单位为毫秒 (5 秒)
redis:
#是否开启集群 false 不开启集群 , true 开启集群
isJq: false
host: 172.16.17.163
port: 6379
password: sunyard2
# 连接超时时长(毫秒)
timeout: 6000ms
cluster:
nodes: 47.99.123.162:6379,47.99.152.68:6379,47.110.92.9:6379,47.99.123.162:6378,47.99.152.68:6378,47.110.92.9:6378
# 集群模式下,集群最大转发的数量
max-redirects: 3
jedis:
pool:
# 连接池最大连接数(使用负值表示没有限制)
max-active: 1000
# 连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
# 连接池中的最大空闲连接     
max-idle: 50
# 连接池中的最小空闲连接
min-idle: 25
servlet:
multipart:
#默认单个上传文件是1MB
max-file-size: 50MB
#默认上传文件总大小是10MB
max-request-size: 50MB
#开启切面
aop:
proxy-target-class: true
auto: true
file:
path: ${file_path:Y:\}
mybatis-plus:
mapper-locations: classpath*:mapper/**/*Mapper.xml
# 原生配置
configuration:
log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
map-underscore-to-camel-case: true
cache-enabled: false
lazy-loading-enabled: false
global-config:
# 数据库相关配置
db-config:
#主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID",ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
id-type: AUTO
#驼峰下划线转换
table-underline: true
#是否开启大写命名,默认不开启
capital-mode: true
#逻辑删除配置
#logic-delete-value: 1
#logic-not-delete-value: 0
ssp:
token:
# 默认JWT 启用Redis后设置为true后token将存入redis并具有单点登录功能
redis: true
# 限制用户登陆错误次数(次)
loginTimeLimit: 3
# 错误超过次数后多少分钟后才能继续登录(分钟)
loginAfterTime: 10
# token过期时间分钟
tokenExpireTime: 10080
# 用户选择保存登录状态对应token过期时间
saveLoginTime: 7
# 密码过期时间 (日)
passMaxDays: 90
#密码过期前多少天开始提示
passWarnAge: 7
# 需要验证码校验的接口路径 支持通配符 自动过滤拦截校验 无需开发人员再次校验
captcha:
# 图片验证码验证
image:
- /login # 登录接口
# 忽略鉴权url
ignored:
urls:
- /**
- /common/captcha/**
- /swagger/**
- /**/v2/api-docs
- /**/*.js
- /**/*.css
- /**/*.png
- /**/*.ico
- /login
- /certificate/certificate/save
- /swagger-ui.html
- /swagger-resources/**
- /swagger/**
- /druid/**
- /Certificate/**
- /sysconf/paramConf/selectByItem
- /ushield/dowloadFile
- /ushield/ulogin
- /sysconf/scDictData/selectVersion
- /user/admin/init
- /user/initialization/check
- /sysconf/scDictData/selectByType
- /ushield/urandom
- /cipherMachine
- /ushield/bindUPublickey
- /ushield/init/bindUPublickey
- /status/set
- /test/setALL
logging:
level:
root: info
com.sunyard.chsm.mapper: debug
# org.springframework.web: trace
# config: classpath:log4j2.xml
monitorSwitch:
redis: ${redisMonitorSwitch:true}
db: ${dbMonitorSwitch:true}
#redisSyncTask:
# packageName: com.sunyard.ssp.modules.redisSyncTask.task