张晓波
2023-10-12 c3e0c3ee12df1ffb544aa63c6c3a60486cbd1e40
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
package com.thhy.staff.config;
 
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
 
import java.io.Serializable;
 
@Data
@Configuration
@ConfigurationProperties(prefix = "emqx")
public class EmqxConfig {
 
    private String host;
 
    private String port;
 
    private String username;
 
    private String password;
 
    private int qos;
 
    private String topic;
 
    private String willTopic;
 
    private String willContent;
 
    @Override
    public String toString() {
        return "{" +
                "host:'" + host + '\'' +
                ", port:'" + port + '\'' +
                ", username:'" + username + '\'' +
                ", password:'" + password + '\'' +
                ", qos:" + qos +
                ", topic:'" + topic + '\'' +
                ", willTopic:'" + willTopic + '\'' +
                ", willContent:'" + willContent + '\'' +
                '}';
    }
}