From 519b4b55161bdf53b8af3e285eac30fa2502710c Mon Sep 17 00:00:00 2001 From: xiaoshitou <1292209726@qq.com> Date: Tue, 8 Mar 2022 19:45:10 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B2=BB=E5=A5=BD=E5=BC=BA=E8=BF=AB=E7=97=87?= =?UTF-8?q?=E6=82=A3=E8=80=85=E4=B9=8B=E8=A1=A5=E5=85=85=E4=B8=80=E4=B8=AA?= =?UTF-8?q?\t=20update=20magic-api-spring-boot-starter/src/main/java/org/s?= =?UTF-8?q?sssssss/magicapi/spring/boot/starter/ApplicationUriPrinter.java?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spring/boot/starter/ApplicationUriPrinter.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/magic-api-spring-boot-starter/src/main/java/org/ssssssss/magicapi/spring/boot/starter/ApplicationUriPrinter.java b/magic-api-spring-boot-starter/src/main/java/org/ssssssss/magicapi/spring/boot/starter/ApplicationUriPrinter.java index 151f7122..993e3abc 100644 --- a/magic-api-spring-boot-starter/src/main/java/org/ssssssss/magicapi/spring/boot/starter/ApplicationUriPrinter.java +++ b/magic-api-spring-boot-starter/src/main/java/org/ssssssss/magicapi/spring/boot/starter/ApplicationUriPrinter.java @@ -48,10 +48,12 @@ public class ApplicationUriPrinter implements CommandLineRunner { String schema = "http://"; String localUrl = schema + PathUtils.replaceSlash(String.format("localhost:%s/%s/%s/", port, contextPath, Objects.toString(properties.getPrefix(), ""))); String externUrl = schema + PathUtils.replaceSlash(String.format("%s:%s/%s/%s/", ip, port, contextPath, Objects.toString(properties.getPrefix(), ""))); - System.out.println( - "服务启动成功,magic-api已内置启动! Access URLs:\n\t" + - "接口本地地址: \t\t" + localUrl + "\n\t" + - "接口外部访问地址: \t" + externUrl + System.out.printf( + "服务启动成功,magic-api已内置启动! Access URLs:" + + "\n\t接口本地地址: \t\t%s" + + "\n\t接口外部访问地址: \t\t%s\n" + , localUrl + , externUrl ); if (!StringUtils.isEmpty(magicWebPath)) { String webPath = schema + PathUtils.replaceSlash(String.format("%s:%s/%s/%s/index.html", ip, port, contextPath, magicWebPath)); @@ -59,6 +61,5 @@ public class ApplicationUriPrinter implements CommandLineRunner { } System.out.println("\t可通过配置关闭输出: \tmagic-api.show-url=false"); System.out.println("********************************************当前服务相关地址********************************************"); - } }