From 84f63adcbc05934bc59d8840cddc0813a76a25ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9A=AE=E5=85=89=EF=BC=9A=E5=9F=8E=E4=B8=AD=E5=9F=8E?= <806783409@qq.com> Date: Sat, 4 Feb 2023 17:26:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=AF=E5=8A=A8=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/zyplayer/doc/manage/Application.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/zyplayer-doc-manage/src/main/java/com/zyplayer/doc/manage/Application.java b/zyplayer-doc-manage/src/main/java/com/zyplayer/doc/manage/Application.java index c9b067d3..9a4d00fa 100644 --- a/zyplayer-doc-manage/src/main/java/com/zyplayer/doc/manage/Application.java +++ b/zyplayer-doc-manage/src/main/java/com/zyplayer/doc/manage/Application.java @@ -1,7 +1,11 @@ package com.zyplayer.doc.manage; +import com.zyplayer.doc.core.util.ZyplayerDocVersion; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.config.BeanDefinition; +import org.springframework.beans.factory.support.BeanDefinitionRegistry; +import org.springframework.beans.factory.support.BeanNameGenerator; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; @@ -22,7 +26,7 @@ import java.util.Optional; */ @EnableScheduling @SpringBootApplication -@ComponentScan(basePackages = {"com.zyplayer.doc.manage", "com.zyplayer.doc.data"}) +@ComponentScan(basePackages = {"com.zyplayer.doc"}) public class Application extends SpringBootServletInitializer { private static Logger logger = LoggerFactory.getLogger(Application.class); @@ -41,13 +45,11 @@ public class Application extends SpringBootServletInitializer { String hostAddress = InetAddress.getLocalHost().getHostAddress(); String serverPort = env.getProperty("server.port"); String urlCtx = hostAddress + ":" + serverPort + "/" + contextPath; - String localCtx = "local.zyplayer.com:" + serverPort + "/" + contextPath; logger.info("\n----------------------------------------------------------\n\t" + - "\t\t地址列表\n" + - "\t管理地址:http://{}\n" + - "\t域名访问:http://{}\n" + + "\tzyplayer-doc启动完成,当前版本:{}\n" + + "\t访问地址:http://{}\n" + "----------------------------------------------------------", - urlCtx, localCtx + ZyplayerDocVersion.version, urlCtx ); } }