chore: 优化后端程序启动成功输出内容
This commit is contained in:
parent
55448364a3
commit
63228598d9
@ -361,7 +361,7 @@ git clone https://github.com/Charles7c/continew-admin.git
|
||||
# [3.也可以在 IntelliJ IDEA 中直接配置程序启动环境变量(DB_HOST、DB_PORT、DB_USER、DB_PWD、DB_NAME;REDIS_HOST、REDIS_PORT、REDIS_PWD、REDIS_DB)]
|
||||
|
||||
# 4.启动程序
|
||||
# 4.1 启动成功:访问 http://localhost:8000/,页面输出:ContiNew Admin backend service started successfully.
|
||||
# 4.1 启动成功:访问 http://localhost:8000/,页面输出:Xxx started successfully.
|
||||
# 4.2 接口文档:http://localhost:8000/doc.html
|
||||
|
||||
# 5.部署
|
||||
|
@ -70,7 +70,7 @@ public class ContiNewAdminApplication implements ApplicationRunner {
|
||||
@SaIgnore
|
||||
@GetMapping("/")
|
||||
public String index() {
|
||||
return String.format("%s backend service started successfully.", projectProperties.getName());
|
||||
return String.format("%s service started successfully.", projectProperties.getName());
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -79,13 +79,13 @@ public class ContiNewAdminApplication implements ApplicationRunner {
|
||||
Integer port = serverProperties.getPort();
|
||||
String contextPath = serverProperties.getServlet().getContextPath();
|
||||
String baseUrl = URLUtil.normalize(String.format("%s:%s%s", hostAddress, port, contextPath));
|
||||
log.info("------------------------------------------------------");
|
||||
log.info("{} backend service started successfully.", projectProperties.getName());
|
||||
log.info("后端 API 地址:{}", baseUrl);
|
||||
log.info("----------------------------------------------");
|
||||
log.info("{} service started successfully.", projectProperties.getName());
|
||||
log.info("API 地址:{}", baseUrl);
|
||||
Boolean docEnabled = Convert.toBool(SpringUtil.getProperty("springdoc.swagger-ui.enabled"));
|
||||
if (Boolean.TRUE.equals(docEnabled)) {
|
||||
log.info("后端 API 文档:{}/doc.html", baseUrl);
|
||||
log.info("API 文档:{}/doc.html", baseUrl);
|
||||
}
|
||||
log.info("------------------------------------------------------");
|
||||
log.info("----------------------------------------------");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user