package com.sandu.ximon.admin.config;
|
|
import org.springframework.beans.factory.InitializingBean;
|
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.stereotype.Component;
|
|
/**
|
* @author LiuHaoNan
|
* @date 2022/9/26
|
*/
|
@Component
|
public class BroadcastIP implements InitializingBean {
|
|
|
private static String SERVER;
|
|
@Value("${broadcastApi.serviceUrl}")
|
private String server;
|
|
@Override
|
public void afterPropertiesSet() throws Exception {
|
SERVER = server;
|
}
|
|
public static String getServerIP() {
|
return SERVER;
|
}
|
}
|