648540858
2023-06-21 7b24d51db9800d41fe73df4a97d02ed1429dae11
src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java
@@ -1,14 +1,18 @@
package com.genersoft.iot.vmp.conf;
import org.springframework.core.annotation.Order;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties(prefix = "sip", ignoreInvalidFields = true)
@Order(0)
public class SipConfig {
   private String ip;
   private String showIp;
   private Integer port;
@@ -92,4 +96,15 @@
   public void setAlarm(boolean alarm) {
      this.alarm = alarm;
   }
   public String getShowIp() {
      if (this.showIp == null) {
         return this.ip;
      }
      return showIp;
   }
   public void setShowIp(String showIp) {
      this.showIp = showIp;
   }
}