| | |
| | | import org.junit.jupiter.api.Order; |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.util.ObjectUtils; |
| | | |
| | | @Component |
| | | @ConfigurationProperties(prefix = "sip", ignoreInvalidFields = true) |
| | |
| | | public class SipConfig { |
| | | |
| | | private String ip; |
| | | |
| | | private String showIp; |
| | | |
| | | private Integer port; |
| | | |
| | |
| | | this.alarm = alarm; |
| | | } |
| | | |
| | | public String getShowIp() { |
| | | if (this.showIp == null) { |
| | | return this.ip; |
| | | } |
| | | return showIp; |
| | | } |
| | | |
| | | public void setShowIp(String showIp) { |
| | | this.showIp = showIp; |
| | | } |
| | | } |