public class ApplicationInformation extends Object
| 构造器和说明 |
|---|
ApplicationInformation() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
modId(org.springframework.core.env.ConfigurableEnvironment environment,
org.springframework.boot.autoconfigure.web.ServerProperties serverProperties)
模块标识
|
static int |
serverPort(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties)
模块HTTP端口号
|
static String[] |
splitAddress(String hostAndPort)
拆分网络地址为host and port
|
public static String modId(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.autoconfigure.web.ServerProperties serverProperties)
environment - Spring EnvserverProperties - serverPropertiespublic static String[] splitAddress(String hostAndPort)
hostAndPort - 主机和端口public static int serverPort(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties)
serverProperties - serverPropertiesCopyright © 2019. All rights reserved.