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: druid:
# 主库数据源 # 主库数据源
master: 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 username: wumei2.4
password: rtB8EhbRRYSGyxHw password: rtB8EhbRRYSGyxHw
# 从库数据源 # 从库数据源
@ -17,7 +17,7 @@ spring:
password: password:
# TDengine数据库 # TDengine数据库
tdengine-server: tdengine-server:
enabled: false # 默认不启用TDenginetrue=启用false=不启用 enabled: false # 默认不启用TDenginetrue=启用false=不启用
driverClassName: com.taosdata.jdbc.TSDBDriver driverClassName: com.taosdata.jdbc.TSDBDriver
url: jdbc:TAOS://fastbee:6030/fastbee_log?timezone=UTC-8&charset=utf-8 url: jdbc:TAOS://fastbee:6030/fastbee_log?timezone=UTC-8&charset=utf-8
username: root username: root
@ -57,10 +57,11 @@ spring:
multi-statement-allow: true multi-statement-allow: true
# redis 配置 # redis 配置
redis: redis:
host: localhost # 地址
host: localhost # 地址
port: 6379 # 端口默认为6379 port: 6379 # 端口默认为6379
database: 0 # 数据库索引 database: 1 # 数据库索引
password: hzwl_123 # 密码 # password: fastbee # 密码
timeout: 10s # 连接超时时间 timeout: 10s # 连接超时时间
lettuce: lettuce:
pool: pool:
@ -70,11 +71,11 @@ spring:
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制) max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
# mqtt 配置 # mqtt 配置
mqtt: mqtt:
username: fastbee # 账号(仅用于后端自认证) username: fastbee # 账号
password: fastbee # 密码(仅用于后端自认证) password: fastbee # 密码
host-url: tcp://w.hanzhenyun.com:13087 # 连接 Emqx 消息服务器地址 host-url: tcp://localhost:1883 # mqtt连接tcp地址
# host-url: tcp://177.7.0.13:1883 # 内置netty mqtt broker地址
client-id: ${random.int} # 客户端Id不能相同采用随机数 ${random.value} client-id: ${random.int} # 客户端Id不能相同采用随机数 ${random.value}
# client-id: mqttx_22ee8d0f # 客户端Id不能相同采用随机数 ${random.value}
default-topic: test # 默认主题 default-topic: test # 默认主题
timeout: 30 # 超时时间 timeout: 30 # 超时时间
keepalive: 30 # 保持连接 keepalive: 30 # 保持连接
@ -102,9 +103,10 @@ redisson:
timeout: 3000 timeout: 3000
# 发布和订阅连接池大小 # 发布和订阅连接池大小
subscriptionConnectionPoolSize: 50 subscriptionConnectionPoolSize: 50
# sip 配置 # sip 配置
sip: sip:
enabled: false # 是否启用视频监控SIPtrue为启用 enabled: false # 是否启用视频监控SIPtrue为启用
## 本地调试时绑定网卡局域网IP设备在同一局域网设备接入IP填写绑定IP ## 本地调试时绑定网卡局域网IP设备在同一局域网设备接入IP填写绑定IP
## 部署服务端时默认绑定容器IP设备接入IP填写服务器公网IP ## 部署服务端时默认绑定容器IP设备接入IP填写服务器公网IP
ip: 127.0.0.1 ip: 127.0.0.1
@ -117,19 +119,18 @@ sip:
logging: logging:
level: level:
com.fastbee: debug com.fastbee: debug
com.yomahub: warn com.yomahub: debug
org.dromara: warn org.dromara: warn
org.springframework: warn org.springframework: warn
# Swagger配置 # Swagger配置
swagger: swagger:
enabled: true # 是否开启swagger enabled: true # 是否开启swagger
pathMapping: /prod-api # 请求前缀 pathMapping: /dev-api # 请求前缀
liteflow: liteflow:
#FlowExecutor的execute2Future的线程数 #FlowExecutor的execute2Future的线程数默认为64
main-executor-works: 128 main-executor-works: 64
#FlowExecutor的execute2Future的自定义线程池Builder #FlowExecutor的execute2Future的自定义线程池Builder
main-executor-class: com.fastbee.ruleEngine.config.MainExecutorBuilder main-executor-class: com.fastbee.ruleEngine.config.MainExecutorBuilder
#并行节点的线程池Builder #并行节点的线程池Builder

View File

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