文件名从 src/main/java/com/se/nsl/config/GaugeServer.java 修改 |
| | |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | @Configuration |
| | | @ConfigurationProperties(prefix = "gauge-server") |
| | | public class GaugeServer { |
| | | @ConfigurationProperties(prefix = "realtime-simulate-config") |
| | | public class RealTimeSimulationConfig { |
| | | |
| | | private String url; |
| | | private String token; |
| | | private int realTimeInterval; |
| | | private int requestOffsetMinutes; //闆ㄩ噺璁¤姹傞棿闅旂殑鏃堕棿锛屼负浜嗕究浜庤幏鍙栦竴涓寖鍥村唴闆ㄩ噺鏁版嵁 |
| | | private double offsetDays; |
| | | |
| | |
| | | this.token = token; |
| | | } |
| | | |
| | | public int getRealTimeInterval() { |
| | | return realTimeInterval; |
| | | } |
| | | |
| | | public void setRealTimeInterval(int realTimeInterval) { |
| | | this.realTimeInterval = realTimeInterval; |
| | | } |
| | | |
| | | public int getRequestOffsetMinutes() { |
| | | return requestOffsetMinutes; |
| | | } |