删除 lombok
This commit is contained in:
@ -61,11 +61,6 @@
|
|||||||
<groupId>com.xzzn</groupId>
|
<groupId>com.xzzn</groupId>
|
||||||
<artifactId>ems-system</artifactId>
|
<artifactId>ems-system</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.projectlombok</groupId>
|
|
||||||
<artifactId>lombok</artifactId>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
package com.xzzn.framework.config.properties;
|
package com.xzzn.framework.config.properties;
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
@Data
|
|
||||||
@Configuration
|
@Configuration
|
||||||
public class MqttProperties {
|
public class MqttProperties {
|
||||||
@Value("${mqtt.broker.url}")
|
@Value("${mqtt.broker.url}")
|
||||||
@ -28,4 +26,59 @@ public class MqttProperties {
|
|||||||
@Value("${mqtt.automatic-reconnect:true}")
|
@Value("${mqtt.automatic-reconnect:true}")
|
||||||
private boolean automaticReconnect;
|
private boolean automaticReconnect;
|
||||||
|
|
||||||
|
public String getBrokerUrl() {
|
||||||
|
return brokerUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBrokerUrl(String brokerUrl) {
|
||||||
|
this.brokerUrl = brokerUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getClientId() {
|
||||||
|
return clientId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setClientId(String clientId) {
|
||||||
|
this.clientId = clientId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsername() {
|
||||||
|
return username;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsername(String username) {
|
||||||
|
this.username = username;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPassword() {
|
||||||
|
return password;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPassword(String password) {
|
||||||
|
this.password = password;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getConnectionTimeout() {
|
||||||
|
return connectionTimeout;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setConnectionTimeout(int connectionTimeout) {
|
||||||
|
this.connectionTimeout = connectionTimeout;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getKeepAliveInterval() {
|
||||||
|
return keepAliveInterval;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKeepAliveInterval(int keepAliveInterval) {
|
||||||
|
this.keepAliveInterval = keepAliveInterval;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isAutomaticReconnect() {
|
||||||
|
return automaticReconnect;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAutomaticReconnect(boolean automaticReconnect) {
|
||||||
|
this.automaticReconnect = automaticReconnect;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user