【fix sonar】 JeroSystemCloudApplication.java文件
This commit is contained in:
+5
-4
@@ -30,6 +30,7 @@ public class JeroSystemCloudApplication extends SpringBootServletInitializer {
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws UnknownHostException {
|
||||
String subString = "/doc.html\n";
|
||||
ConfigurableApplicationContext application = SpringApplication.run(JeroSystemCloudApplication.class, args);
|
||||
Environment env = application.getEnvironment();
|
||||
String ip = InetAddress.getLocalHost().getHostAddress();
|
||||
@@ -37,11 +38,11 @@ public class JeroSystemCloudApplication extends SpringBootServletInitializer {
|
||||
String path = oConvertUtils.getString(env.getProperty("server.servlet.context-path"));
|
||||
log.info("\n----------------------------------------------------------\n\t" +
|
||||
"Application jero-boot is running! Access URLs:\n\t" +
|
||||
"Local: \t\thttp://localhost:" + port + path + "/doc.html\n" +
|
||||
"External: \thttp://" + ip + ":" + port + path + "/doc.html\n" +
|
||||
"Swagger文档: \thttp://" + ip + ":" + port + path + "/doc.html\n" +
|
||||
"Local: \t\thttp://localhost:" + port + path + subString +
|
||||
"External: \thttp://" + ip + ":" + port + path + subString +
|
||||
"Swagger文档: \thttp://" + ip + ":" + port + path + subString +
|
||||
"----------------------------------------------------------");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user