mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-17 16:36:03 +08:00
后端V1.0
This commit is contained in:
@@ -6,9 +6,9 @@ spring:
|
||||
druid:
|
||||
# 主库数据源
|
||||
master:
|
||||
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||
url: jdbc:mysql://localhost:3306/wumei-smart?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||
username: root
|
||||
password: 123456
|
||||
password: admin123
|
||||
# 从库数据源
|
||||
slave:
|
||||
# 从数据源开关/默认关闭
|
||||
|
||||
@@ -65,7 +65,7 @@ spring:
|
||||
# 数据库索引
|
||||
database: 0
|
||||
# 密码
|
||||
password: 123456
|
||||
password: admin123
|
||||
# 连接超时时间
|
||||
timeout: 10s
|
||||
lettuce:
|
||||
@@ -81,9 +81,9 @@ spring:
|
||||
|
||||
mqtt:
|
||||
username: admin # 账号
|
||||
password: 123456 # 密码
|
||||
host-url: tcp://localhost:1884 # mqtt连接tcp地址
|
||||
client-id: ${random.value} # 客户端Id,每个启动的id要不同
|
||||
password: admin # 密码
|
||||
host-url: tcp://localhost:1883 # mqtt连接tcp地址
|
||||
client-id: server-${random.value} # 客户端Id,每个启动的id要不同 随机:${random.value}
|
||||
default-topic: test # 默认主题
|
||||
timeout: 100 # 超时时间
|
||||
keepalive: 100 # 保持连接数
|
||||
@@ -94,8 +94,8 @@ token:
|
||||
header: Authorization
|
||||
# 令牌密钥
|
||||
secret: abcdefghijklmnopqrstuvwxyz
|
||||
# 令牌有效期(默认30分钟)
|
||||
expireTime: 30
|
||||
# 令牌有效期(默认30分钟,设置为1周过期)
|
||||
expireTime: 10000
|
||||
|
||||
# MyBatis配置
|
||||
mybatis:
|
||||
@@ -109,7 +109,7 @@ mybatis:
|
||||
# PageHelper分页插件
|
||||
pagehelper:
|
||||
helperDialect: mysql
|
||||
reasonable: true
|
||||
reasonable: false
|
||||
supportMethodsArguments: true
|
||||
params: count=countSql
|
||||
|
||||
|
||||
Reference in New Issue
Block a user