refactor(config): 调整系统配置参数和数据库连接

- 修改密码锁定时间从10分钟改为5分钟
- 关闭多租户功能
- 更新接口文档标题为"海威系统"
- 调整开发和生产环境的数据库连接超时参数
- 生产环境切换为SQL Server数据库并更新连接配置
- 更新Redis密码配置
main
zch 3 months ago
parent 057749a9c9
commit c4b3c960f7

@ -80,13 +80,16 @@ spring:
# 最小空闲线程数量
minIdle: 10
# 配置获取连接等待超时的时间
connectionTimeout: 30000
# 校验超时时间
validationTimeout: 5000
# 单位:毫秒
# 300000ms = 300秒
connectionTimeout: 300000
# 校验超时时间,单位:毫秒
# 50000ms = 50秒
validationTimeout: 50000
# 空闲连接存活最大时间默认10分钟
idleTimeout: 600000
# 此属性控制池中连接的最长生命周期值0表示无限生命周期默认30分钟
maxLifetime: 1800000
# 此属性控制池中连接的最长生命周期值0表示无限生命周期默认300分钟
maxLifetime: 18000000
# 多久检查一次连接的活性
keepaliveTime: 30000

@ -46,13 +46,18 @@ spring:
datasource:
# 主库数据源
master:
# type: ${spring.datasource.type}
# driverClassName: com.mysql.cj.jdbc.Driver
# # jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
# # rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
# url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
# username: root
# password: root
type: ${spring.datasource.type}
driverClassName: com.mysql.cj.jdbc.Driver
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
username: root
password: root
driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
url: jdbc:sqlserver://localhost:1433;DatabaseName=energy-visual;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true
username: SA
password: haiwei@123
# # 从库数据源
# slave:
# lazy: true
@ -85,13 +90,16 @@ spring:
# 最小空闲线程数量
minIdle: 10
# 配置获取连接等待超时的时间
connectionTimeout: 30000
# 校验超时时间
validationTimeout: 5000
# 单位:毫秒
# 300000ms = 300秒
connectionTimeout: 300000
# 校验超时时间,单位:毫秒
# 50000ms = 50秒
validationTimeout: 50000
# 空闲连接存活最大时间默认10分钟
idleTimeout: 600000
# 此属性控制池中连接的最长生命周期值0表示无限生命周期默认30分钟
maxLifetime: 1800000
# 此属性控制池中连接的最长生命周期值0表示无限生命周期默认100分钟
maxLifetime: 6000000
# 多久检查一次连接的活性
keepaliveTime: 30000
@ -105,7 +113,7 @@ spring.data:
# 数据库索引
database: 0
# redis 密码必须配置
password: ruoyi123
password: haiwei@123
# 连接超时时间
timeout: 10s
# 是否开启ssl

@ -44,8 +44,8 @@ user:
password:
# 密码最大错误次数
maxRetryCount: 5
# 密码锁定时间(默认10分钟)
lockTime: 10
# 密码锁定时间(默认5分钟)
lockTime: 5 # 5分钟
# Spring配置
spring:
@ -120,7 +120,7 @@ security:
# 多租户配置
tenant:
# 是否开启
enable: true
enable: false
# 排除表
excludes:
- sys_menu
@ -185,7 +185,7 @@ springdoc:
enabled: true
info:
# 标题
title: '标题:RuoYi-Vue-Plus多租户管理系统_接口文档'
title: '标题:海威系统_接口文档'
# 描述
description: '描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...'
# 版本

Loading…
Cancel
Save