优化 Application 启动完成输出的提示信息
This commit is contained in:
@@ -12,8 +12,6 @@
|
||||
*/
|
||||
package com.jeesite.modules;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import com.jeesite.modules.cloud.feign.EnableFeignClients;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
@@ -38,9 +36,9 @@ public class ${@StringUtils.capCamelCase(moduleCode)}Application extends SpringB
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(${@StringUtils.capCamelCase(moduleCode)}Application.class, args);
|
||||
logger.info(
|
||||
"\r\n\r\n==============================================================\r\n"
|
||||
+ "\r\n " + ${@StringUtils.capCamelCase(moduleCode)}Application.class.getName() + " 启动完成。"
|
||||
+ "\r\n\r\n==============================================================\r\n");
|
||||
"\n\n==============================================================\n"
|
||||
+ "\n " + ${@StringUtils.capCamelCase(moduleCode)}Application.class.getName() + " 启动完成。\n"
|
||||
+ "\n==============================================================\n");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -13,9 +13,9 @@
|
||||
<inceptionYear>2013-Now</inceptionYear>
|
||||
|
||||
<modules>
|
||||
<module>core</module>
|
||||
<module>app</module>
|
||||
<module>cms</module>
|
||||
<module>core</module>
|
||||
<module>static</module>
|
||||
<module>test</module>
|
||||
</modules>
|
||||
|
||||
@@ -25,12 +25,12 @@ public class ApiApplication extends SpringBootServletInitializer {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(ApiApplication.class, args);
|
||||
logger.info(
|
||||
"\r\n\r\n==============================================================\r\n"
|
||||
+ "\r\n 启动完成,接口地址:http://127.0.0.1:"
|
||||
+ Global.getProperty("server.port") + FileUtils.path("/"
|
||||
+ Global.getProperty("server.servlet.context-path"))
|
||||
+ "\r\n\r\n 默认管理账号: system 密码: admin"
|
||||
+ "\r\n\r\n==============================================================\r\n");
|
||||
"\n\n==============================================================\n"
|
||||
+ "\n 启动完成,接口地址:http://127.0.0.1:{}\n"
|
||||
+ "\n 默认管理账号: system 密码: admin\n"
|
||||
+ "\n==============================================================\n",
|
||||
Global.getProperty("server.port") + FileUtils.path("/"
|
||||
+ Global.getProperty("server.servlet.context-path")));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -41,19 +41,20 @@ public class FastApplication extends SpringBootServletInitializer {
|
||||
String ctxPath = Global.getProperty("server.servlet.context-path");
|
||||
if (StringUtils.isNoneBlank(vuePath, ctxPath)) {
|
||||
logger.info(
|
||||
"\r\n\r\n==============================================================\r\n"
|
||||
+ "\r\n 提示:您修改了 server.servlet.context-path 参数,需要您"
|
||||
+ "\r\n 同步修改 _app.config.js 中的 VITE_GLOB_API_URL_PREFIX 参数 "
|
||||
+ "\r\n 请修改为 VITE_GLOB_API_URL_PREFIX=\"" + ctxPath + "\""
|
||||
+ "\r\n\r\n==============================================================\r\n");
|
||||
"\n\n==============================================================\n"
|
||||
+ "\n 提示:您修改了 server.servlet.context-path 参数,需要您"
|
||||
+ "\n 同步修改 _app.config.js 中的 VITE_GLOB_API_URL_PREFIX 参数 "
|
||||
+ "\n 请修改为 VITE_GLOB_API_URL_PREFIX=\"{}\" 并重新打包 Vue\n"
|
||||
+ "\n==============================================================\n",
|
||||
ctxPath);
|
||||
}
|
||||
logger.info(
|
||||
"\r\n\r\n==============================================================\r\n"
|
||||
+ "\r\n 启动完成,访问地址:http://127.0.0.1:"
|
||||
+ Global.getProperty("server.port") + FileUtils.path("/"
|
||||
+ Global.getProperty("server.servlet.context-path"))
|
||||
+ "\r\n\r\n 默认管理账号: system 密码: admin"
|
||||
+ "\r\n\r\n==============================================================\r\n");
|
||||
"\n\n==============================================================\n"
|
||||
+ "\n 启动完成,访问地址:http://127.0.0.1:{}\n"
|
||||
+ "\n 默认管理账号: system 密码: admin\n"
|
||||
+ "\n==============================================================\n",
|
||||
Global.getProperty("server.port") + FileUtils.path("/"
|
||||
+ Global.getProperty("server.servlet.context-path")));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -25,12 +25,12 @@ public class MiniApplication extends SpringBootServletInitializer {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(MiniApplication.class, args);
|
||||
logger.info(
|
||||
"\r\n\r\n==============================================================\r\n"
|
||||
+ "\r\n 启动完成,监控地址:http://127.0.0.1:"
|
||||
+ Global.getProperty("server.port") + FileUtils.path("/"
|
||||
"\n\n==============================================================\n"
|
||||
+ "\n 启动完成,访问地址:http://127.0.0.1:{}\n"
|
||||
+ "\n==============================================================\n",
|
||||
Global.getProperty("server.port") + FileUtils.path("/"
|
||||
+ Global.getProperty("server.servlet.context-path")
|
||||
+ Global.getAdminPath()) + "/state/server/index"
|
||||
+ "\r\n\r\n==============================================================\r\n");
|
||||
+ Global.getAdminPath()) + "/state/server/index");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -25,12 +25,12 @@ public class Application extends SpringBootServletInitializer {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(Application.class, args);
|
||||
logger.info(
|
||||
"\r\n\r\n==============================================================\r\n"
|
||||
+ "\r\n 启动完成,访问地址:http://127.0.0.1:"
|
||||
+ Global.getProperty("server.port") + FileUtils.path("/"
|
||||
+ Global.getProperty("server.servlet.context-path"))
|
||||
+ "\r\n\r\n 默认管理账号: system 密码: admin"
|
||||
+ "\r\n\r\n==============================================================\r\n");
|
||||
"\n\n==============================================================\n"
|
||||
+ "\n 启动完成,访问地址:http://127.0.0.1:{}\n"
|
||||
+ "\n 默认管理账号: system 密码: admin\n"
|
||||
+ "\n==============================================================\n",
|
||||
Global.getProperty("server.port") + FileUtils.path("/"
|
||||
+ Global.getProperty("server.servlet.context-path")));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user