application.yml
841 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
##服务器配置
server:
tomcat:
uri-encoding: UTF-8
port: 4883
servlet:
context-path: /
spring:
messages:
encoding: UTF-8
mvc:
#出现错误时, 直接抛出异常
throw-exception-if-no-handler-found: true
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
default-property-inclusion: non_null
mqtt:
#链接地址
broker: tcp://47.112.163.61:1883
#唯一标识
clientId: ${random.uuid}
#公司id
roleid: 2
mqtt_usernames: PLC_006,PLC_004
#订阅的topic
topics: ALL_POST,PUT_REQ
sub_clientid: '#'
topicconfig: "/{{roleid}}/{{username}}/{{topicType}}/{{clientid}}"
top_return_map: '{"PUT":"PUT_REQ"}'
username: sysuser
password: "!@#1qaz"
client:
#客户端操作时间
operationTime: 10
sys:
redis:
field: "lh:mqttservice:"
isText: false