public class PortHelper extends Object
| 构造器和说明 |
|---|
PortHelper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
getPortFromConfigFile()
get config from configFile
-Dspring.config.location > classpath:application.properties > classpath:application.yml
|
static int |
getPortFromEnvOrStartup(String[] args) |
public static int getPortFromEnvOrStartup(String[] args)
public static int getPortFromConfigFile()
throws IOException
IOExceptionCopyright © 2022 Seata. All rights reserved.