diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/config/WebMvcConfiguration.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/config/WebMvcConfiguration.java index 3fcbf9e83b1687f6bccd4896a49a6d63607eee64..6ec3696d9afc25c4a2865b23c065bce0f969a036 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/config/WebMvcConfiguration.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/config/WebMvcConfiguration.java @@ -53,10 +53,11 @@ public class WebMvcConfiguration implements WebMvcConfigurer { } /** - * 访问根路径默认跳转 index.html页面 (简化部署方案: 可以把前端打包直接放到项目的 webapp,上面的配置) + * 方案一: 默认访问根路径跳转 doc.html页面 (swagger文档页面) + * 方案二: 访问根路径改成跳转 index.html页面 (简化部署方案: 可以把前端打包直接放到项目的 webapp,上面的配置) */ @Override public void addViewControllers(ViewControllerRegistry registry) { - registry.addViewController("/").setViewName("index.html"); + registry.addViewController("/").setViewName("doc.html"); } } diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/application.yml b/jeecg-boot/jeecg-boot-module-system/src/main/resources/application.yml index 4b2ca4184a5042eddf683923d686a0a44ce8b58b..99966a5e2b5a39807d157c5c38d5115bcd7a1a9a 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/application.yml +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/application.yml @@ -4,6 +4,6 @@ spring: swagger: production: false basic: - enable: true + enable: false username: jeecg password: jeecg1314 \ No newline at end of file