@Component public class RunningConfigUtils extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>
| Constructor and Description |
|---|
RunningConfigUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getClusterName() |
static String |
getContextPath() |
static int |
getServerPort() |
void |
onApplicationEvent(org.springframework.boot.web.context.WebServerInitializedEvent event) |
static void |
setContextPath(String contextPath) |
static void |
setServerPort(int serverPort) |
public void onApplicationEvent(org.springframework.boot.web.context.WebServerInitializedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>public static int getServerPort()
public static String getContextPath()
public static String getClusterName()
public static void setServerPort(int serverPort)
public static void setContextPath(String contextPath)
Copyright © 2018–2019 Alibaba Group. All rights reserved.