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 login;
|
|
private String password;
|
|
private int qos;
|
|
private String topic;
|
|
private String willTopic;
|
|
private String willContent;
|
|
@Override
|
public String toString() {
|
return "{" +
|
"host:'" + host + '\'' +
|
", port:'" + port + '\'' +
|
", login:'" + login + '\'' +
|
", password:'" + password + '\'' +
|
", qos:" + qos +
|
", topic:'" + topic + '\'' +
|
", willTopic:'" + willTopic + '\'' +
|
", willContent:'" + willContent + '\'' +
|
'}';
|
}
|
}
|