【fix sonar】 JeroSystemCloudApplication.java文件

This commit is contained in:
tianwenbo
2023-03-10 10:13:24 +08:00
parent 757eeee10c
commit 10c41ba1d1
@@ -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 +
"----------------------------------------------------------");
}
}
}