mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-17 16:36:03 +08:00
配置文件修改
This commit is contained in:
@@ -1,63 +1,57 @@
|
|||||||
# 数据源配置
|
# 数据源配置
|
||||||
spring:
|
spring:
|
||||||
datasource:
|
datasource:
|
||||||
type: com.alibaba.druid.pool.DruidDataSource
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
driverClassName: com.mysql.cj.jdbc.Driver
|
driverClassName: com.mysql.cj.jdbc.Driver
|
||||||
druid:
|
druid:
|
||||||
# 主库数据源
|
# 主库数据源
|
||||||
master:
|
master:
|
||||||
url: jdbc:mysql://localhost/wumei-smart?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
url: jdbc:mysql://localhost/wumei-smart?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||||
username: root
|
username: root
|
||||||
<<<<<<< HEAD
|
password: admin
|
||||||
password: root
|
# 从库数据源
|
||||||
# password: 123456
|
slave:
|
||||||
=======
|
# 从数据源开关/默认关闭
|
||||||
password: wumei-smart
|
enabled: false
|
||||||
# password: 123456
|
url:
|
||||||
>>>>>>> 45a497af97959ef44d9172185e2ab1883a4fa25d
|
username:
|
||||||
# 从库数据源
|
password:
|
||||||
slave:
|
# 初始连接数
|
||||||
# 从数据源开关/默认关闭
|
initialSize: 5
|
||||||
enabled: false
|
# 最小连接池数量
|
||||||
url:
|
minIdle: 10
|
||||||
username:
|
# 最大连接池数量
|
||||||
password:
|
maxActive: 20
|
||||||
# 初始连接数
|
# 配置获取连接等待超时的时间
|
||||||
initialSize: 5
|
maxWait: 60000
|
||||||
# 最小连接池数量
|
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
||||||
minIdle: 10
|
timeBetweenEvictionRunsMillis: 60000
|
||||||
# 最大连接池数量
|
# 配置一个连接在池中最小生存的时间,单位是毫秒
|
||||||
maxActive: 20
|
minEvictableIdleTimeMillis: 300000
|
||||||
# 配置获取连接等待超时的时间
|
# 配置一个连接在池中最大生存的时间,单位是毫秒
|
||||||
maxWait: 60000
|
maxEvictableIdleTimeMillis: 900000
|
||||||
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
# 配置检测连接是否有效
|
||||||
timeBetweenEvictionRunsMillis: 60000
|
validationQuery: SELECT 1 FROM DUAL
|
||||||
# 配置一个连接在池中最小生存的时间,单位是毫秒
|
testWhileIdle: true
|
||||||
minEvictableIdleTimeMillis: 300000
|
testOnBorrow: false
|
||||||
# 配置一个连接在池中最大生存的时间,单位是毫秒
|
testOnReturn: false
|
||||||
maxEvictableIdleTimeMillis: 900000
|
webStatFilter:
|
||||||
# 配置检测连接是否有效
|
enabled: true
|
||||||
validationQuery: SELECT 1 FROM DUAL
|
statViewServlet:
|
||||||
testWhileIdle: true
|
enabled: true
|
||||||
testOnBorrow: false
|
# 设置白名单,不填则允许所有访问
|
||||||
testOnReturn: false
|
allow:
|
||||||
webStatFilter:
|
url-pattern: /druid/*
|
||||||
enabled: true
|
# 控制台管理用户名和密码
|
||||||
statViewServlet:
|
login-username: wumei-smart
|
||||||
enabled: true
|
login-password: wumei-smart
|
||||||
# 设置白名单,不填则允许所有访问
|
filter:
|
||||||
allow:
|
stat:
|
||||||
url-pattern: /druid/*
|
enabled: true
|
||||||
# 控制台管理用户名和密码
|
# 慢SQL记录
|
||||||
login-username: wumei-smart
|
log-slow-sql: true
|
||||||
login-password: wumei-smart
|
slow-sql-millis: 1000
|
||||||
filter:
|
merge-sql: true
|
||||||
stat:
|
wall:
|
||||||
enabled: true
|
config:
|
||||||
# 慢SQL记录
|
multi-statement-allow: true
|
||||||
log-slow-sql: true
|
|
||||||
slow-sql-millis: 1000
|
|
||||||
merge-sql: true
|
|
||||||
wall:
|
|
||||||
config:
|
|
||||||
multi-statement-allow: true
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ ruoyi:
|
|||||||
# 实例演示开关
|
# 实例演示开关
|
||||||
demoEnabled: true
|
demoEnabled: true
|
||||||
# 文件路径 示例( Windows配置D:/wumei-smart/uploadPath,Linux配置 /var/wumei-smart/java/uploadPath)
|
# 文件路径 示例( Windows配置D:/wumei-smart/uploadPath,Linux配置 /var/wumei-smart/java/uploadPath)
|
||||||
profile: D:/wumei-smart/uploadPath
|
profile: /var/wumei-smart/java/uploadPath
|
||||||
# 获取ip地址开关
|
# 获取ip地址开关
|
||||||
addressEnabled: true
|
addressEnabled: true
|
||||||
# 验证码类型 math 数组计算 char 字符验证
|
# 验证码类型 math 数组计算 char 字符验证
|
||||||
@@ -48,9 +48,9 @@ spring:
|
|||||||
servlet:
|
servlet:
|
||||||
multipart:
|
multipart:
|
||||||
# 单个文件大小
|
# 单个文件大小
|
||||||
max-file-size: 10MB
|
max-file-size: 10MB
|
||||||
# 设置总上传的文件大小
|
# 设置总上传的文件大小
|
||||||
max-request-size: 20MB
|
max-request-size: 20MB
|
||||||
# 服务模块
|
# 服务模块
|
||||||
devtools:
|
devtools:
|
||||||
restart:
|
restart:
|
||||||
@@ -65,8 +65,7 @@ spring:
|
|||||||
# 数据库索引
|
# 数据库索引
|
||||||
database: 0
|
database: 0
|
||||||
# 密码
|
# 密码
|
||||||
# password: wumei-smart
|
password: wumei-smart
|
||||||
# password: 123456
|
|
||||||
# 连接超时时间
|
# 连接超时时间
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
lettuce:
|
lettuce:
|
||||||
@@ -83,7 +82,7 @@ spring:
|
|||||||
mqtt:
|
mqtt:
|
||||||
username: wumei-smart # 账号
|
username: wumei-smart # 账号
|
||||||
password: wumei-smart # 密码
|
password: wumei-smart # 密码
|
||||||
host-url: tcp://localhost:1883 # mqtt连接tcp地址
|
host-url: tcp://localhost:1883 # mqtt连接tcp地址
|
||||||
client-id: ${random.int} # 客户端Id,不能相同,采用随机数 ${random.value}
|
client-id: ${random.int} # 客户端Id,不能相同,采用随机数 ${random.value}
|
||||||
default-topic: test # 默认主题
|
default-topic: test # 默认主题
|
||||||
timeout: 30000 # 超时时间
|
timeout: 30000 # 超时时间
|
||||||
@@ -134,4 +133,4 @@ xss:
|
|||||||
# 排除链接(多个用逗号分隔)
|
# 排除链接(多个用逗号分隔)
|
||||||
excludes: /system/notice
|
excludes: /system/notice
|
||||||
# 匹配链接
|
# 匹配链接
|
||||||
urlPatterns: /system/*,/monitor/*,/tool/*
|
urlPatterns: /system/*,/monitor/*,/tool/*
|
||||||
|
|||||||
Reference in New Issue
Block a user