io.github.dengchen2020.ip.properties.IpBuilder Maven / Gradle / Ivy
package io.github.dengchen2020.ip.properties;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* @author dengchen
* @since 2024/6/5
*/
@ConfigurationProperties("dc.ip")
public class IpBuilder {
private Windows windows = new Windows();
private Linux linux = new Linux();
public Windows getWindows() {
return windows;
}
public void setWindows(Windows windows) {
this.windows = windows;
}
public Linux getLinux() {
return linux;
}
public void setLinux(Linux linux) {
this.linux = linux;
}
public static class Windows {
/**
* ip数据包位置
*/
private String location;
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
}
public static class Linux {
/**
* ip数据包位置
*/
private String location;
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
}
}