From 118775cf79c530e34eaa9b00c1a1d35e923e0f08 Mon Sep 17 00:00:00 2001 From: JEECG <445654970@qq.com> Date: Fri, 25 Jul 2025 13:14:11 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90swagger=E9=97=AE=E9=A2=98=E3=80=91?= =?UTF-8?q?=E4=B8=8D=E5=B8=A6/doc.html=E8=AE=BF=E9=97=AE=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E9=A1=B9=E7=9B=AEswaager=EF=BC=8C=E6=8E=A5=E5=8F=A3=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E5=AE=9E=E9=99=85=E8=AF=B7=E6=B1=82=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=9C=B0=E5=9D=80=E5=B0=91=E4=BA=86=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/jeecg/config/WebMvcConfiguration.java | 2 +- .../src/main/java/org/jeecg/JeecgSystemApplication.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/WebMvcConfiguration.java b/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/WebMvcConfiguration.java index 66b6ae782..84192f06e 100644 --- a/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/WebMvcConfiguration.java +++ b/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/WebMvcConfiguration.java @@ -88,7 +88,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer { */ @Override public void addViewControllers(ViewControllerRegistry registry) { - registry.addViewController("/").setViewName("doc.html"); + registry.addViewController("/").setViewName("redirect:/doc.html"); } @Bean diff --git a/jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/java/org/jeecg/JeecgSystemApplication.java b/jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/java/org/jeecg/JeecgSystemApplication.java index 6e13451b2..9eb6d5e51 100644 --- a/jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/java/org/jeecg/JeecgSystemApplication.java +++ b/jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/java/org/jeecg/JeecgSystemApplication.java @@ -40,7 +40,7 @@ public class JeecgSystemApplication extends SpringBootServletInitializer { String path = oConvertUtils.getString(env.getProperty("server.servlet.context-path")); log.info("\n----------------------------------------------------------\n\t" + "Application Jeecg-Boot is running! Access URLs:\n\t" + - "Local: \t\thttp://localhost:" + port + path + "/doc.html\n\t" + + "Local: \t\thttp://localhost:" + port + path + "\n\t" + "External: \thttp://" + ip + ":" + port + path + "/doc.html\n\t" + "Swagger文档: \thttp://" + ip + ":" + port + path + "/doc.html\n" + "----------------------------------------------------------");