功能开发,加入了昨晚失眠到2点想到的功能,文档大一统指日可待~

This commit is contained in:
暮光:城中城
2018-12-16 22:20:30 +08:00
parent 204ba15e11
commit 3a5702c676
18 changed files with 821 additions and 517 deletions

View File

@@ -33,14 +33,17 @@ public class Application extends SpringBootServletInitializer {
contextPath = (contextPath.length() <= 0 || contextPath.endsWith("/")) ? contextPath : contextPath + "/";
String hostAddress = InetAddress.getLocalHost().getHostAddress();
String serverPort = env.getProperty("server.port");
String urlCtx = hostAddress + ":" + serverPort + "/" + contextPath;
// 三个UI的名字长度惊人的一致肯定是知道我有强迫症
logger.info("\n----------------------------------------------------------\n\t" +
"\t\t地址列表\n\t" +
"文档地址http://{}:{}/{}document.html\n\t" +
//"数据库地址http://{}:{}/{}document.html\n " +
"管理地址http://{}:{}/{}statics/manage/home.html\n" +
"zyplayer-doc-swaggerhttp://{}document.html\n\t" +
"swagger-bootstrap-uihttp://{}doc.html\n\t" +
"springfox-swagger-uihttp://{}swagger-ui.html\n\t" +
//"数据库地址http://{}document.html\n " +
"管理地址http://{}statics/manage/home.html\n" +
"----------------------------------------------------------",
hostAddress, serverPort, contextPath,
hostAddress, serverPort, contextPath
urlCtx, urlCtx, urlCtx, urlCtx
);
}
}