648540858
2023-12-15 df3f5795e7eaefd135082ec8f7edf0818ba53c37
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;
   }
}