This commit is contained in:
Cool 2025-05-20 22:42:48 +08:00
parent ae173c7b17
commit 628765596a
1 changed files with 4 additions and 1 deletions

View File

@ -31,6 +31,8 @@ public class JeecgSystemApplication extends SpringBootServletInitializer {
Environment env = application.getEnvironment();
String ip = InetAddress.getLocalHost().getHostAddress();
String port = env.getProperty("server.port");
String path = oConvertUtils.getString(env.getProperty("server.servlet.context-path"));
System.out.println("test");
log.info("\n----------------------------------------------------------\n\t" +
"Local: \t\thttp://localhost:" + port + path + "/\n\t" +
"External: \thttp://" + ip + ":" + port + path + "/\n\t" +
@ -40,3 +42,4 @@ public class JeecgSystemApplication extends SpringBootServletInitializer {
}
}