package com.xncoding.pos.config;
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.stereotype.Component;
|
|
@Component
|
@ConfigurationProperties("system.netty")
|
public class NettyProperties {
|
private int timeSeconds;
|
private String url;
|
private int port;
|
|
public int getTimeSeconds() {
|
return timeSeconds;
|
}
|
|
public void setTimeSeconds(int timeSeconds) {
|
this.timeSeconds = timeSeconds;
|
}
|
|
public String getUrl() {
|
return url;
|
}
|
|
public void setUrl(String url) {
|
this.url = url;
|
}
|
|
public int getPort() {
|
return port;
|
}
|
|
public void setPort(int port) {
|
this.port = port;
|
}
|
}
|