This commit is contained in:
mi9688 2024-12-20 13:36:09 +08:00
parent a7e486d866
commit 3188472787
2 changed files with 18 additions and 17 deletions

View File

@ -6,7 +6,7 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:mysql://w.hanzhenyun.com/wumei2.4?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url: jdbc:mysql://w.hanzhenyun.com:3306/wumei2.4?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: wumei2.4
password: rtB8EhbRRYSGyxHw
# 从库数据源
@ -57,10 +57,11 @@ spring:
multi-statement-allow: true
# redis 配置
redis:
host: localhost # 地址
port: 6379 # 端口默认为6379
database: 0 # 数据库索引
password: hzwl_123 # 密码
database: 1 # 数据库索引
# password: fastbee # 密码
timeout: 10s # 连接超时时间
lettuce:
pool:
@ -70,11 +71,11 @@ spring:
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
# mqtt 配置
mqtt:
username: fastbee # 账号(仅用于后端自认证)
password: fastbee # 密码(仅用于后端自认证)
host-url: tcp://w.hanzhenyun.com:13087 # 连接 Emqx 消息服务器地址
# host-url: tcp://177.7.0.13:1883 # 内置netty mqtt broker地址
username: fastbee # 账号
password: fastbee # 密码
host-url: tcp://localhost:1883 # mqtt连接tcp地址
client-id: ${random.int} # 客户端Id不能相同采用随机数 ${random.value}
# client-id: mqttx_22ee8d0f # 客户端Id不能相同采用随机数 ${random.value}
default-topic: test # 默认主题
timeout: 30 # 超时时间
keepalive: 30 # 保持连接
@ -102,6 +103,7 @@ redisson:
timeout: 3000
# 发布和订阅连接池大小
subscriptionConnectionPoolSize: 50
# sip 配置
sip:
enabled: false # 是否启用视频监控SIPtrue为启用
@ -117,19 +119,18 @@ sip:
logging:
level:
com.fastbee: debug
com.yomahub: warn
com.yomahub: debug
org.dromara: warn
org.springframework: warn
# Swagger配置
swagger:
enabled: true # 是否开启swagger
pathMapping: /prod-api # 请求前缀
pathMapping: /dev-api # 请求前缀
liteflow:
#FlowExecutor的execute2Future的线程数
main-executor-works: 128
#FlowExecutor的execute2Future的线程数默认为64
main-executor-works: 64
#FlowExecutor的execute2Future的自定义线程池Builder
main-executor-class: com.fastbee.ruleEngine.config.MainExecutorBuilder
#并行节点的线程池Builder

View File

@ -32,8 +32,8 @@ private static final long serialVersionUID = 1L;
private Date pumpStartTime;
/** 关泵时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "关泵时间", width = 30, dateFormat = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "关泵时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty("关泵时间")
private Date pumpStopTime;