Commit 03f44ddd by 刘宇峰

文档路径修改

1 parent 8ca724f6
......@@ -34,12 +34,12 @@ public class Application {
Environment env = application.getEnvironment();
String applicationName = env.getProperty("spring.application.name");
String port = env.getProperty("server.port");
String contextPath = env.getProperty("server.servlet.context-path", "");
String contextPath = env.getProperty("server.servlet.context-path", "/");
log.info("\n----------------------------------------------------------\n\t" +
"Application '{}' is running! Access URLs:\n\t" +
"Local: \t\thttp://localhost:{}{}\n\t" +
"External: \thttp://{}:{}{}\n\t" +
"Doc: \thttp://{}:{}{}/doc.html\n" +
"Doc: \thttp://{}:{}{}doc.html\n" +
"----------------------------------------------------------",
applicationName, port, contextPath,
InetAddress.getLocalHost().getHostAddress(), port, contextPath,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!