elkers
10 天以前 3a1efe863c0cf30683870c204fb9b55ff6c35500
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package com.nanjing.water.common.config;
 
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
 
@Data
@Component
@ConfigurationProperties(prefix = "mqtt")
@Order(10)
public class MqttConfig {
    /**
     * 是否启用
     */
    private Boolean enable;
    /**
     * 主机
     */
    private String host;
 
    /**
     * 端口
     */
    private Integer port;
 
    /**
     * 用户名
     */
    private String user;
 
    /**
     * 密码
     */
    private String password;
 
    /**
     * 订阅主题
     */
    private String topic;
 
    /**
     * 订阅消息的客户端id
     */
    private String clientId;
 
    /**
     * 连接超时时间
     */
    private Integer connectionTimeout;
 
    /**
     * 心跳
     */
    private Integer keepAliveInterval;
 
    /**
     * 发送消息的客户端id
     */
    private String serverClientId;
}