Commit d9059fcc0c8d9fcba005a3a51653080f1fa17f39
1 parent
c59636dd
访问后台默认进去swagger接口首页
Showing
2 changed files
with
4 additions
and
3 deletions
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/config/WebMvcConfiguration.java
@@ -53,10 +53,11 @@ public class WebMvcConfiguration implements WebMvcConfigurer { | @@ -53,10 +53,11 @@ public class WebMvcConfiguration implements WebMvcConfigurer { | ||
53 | } | 53 | } |
54 | 54 | ||
55 | /** | 55 | /** |
56 | - * 访问根路径默认跳转 index.html页面 (简化部署方案: 可以把前端打包直接放到项目的 webapp,上面的配置) | 56 | + * 方案一: 默认访问根路径跳转 doc.html页面 (swagger文档页面) |
57 | + * 方案二: 访问根路径改成跳转 index.html页面 (简化部署方案: 可以把前端打包直接放到项目的 webapp,上面的配置) | ||
57 | */ | 58 | */ |
58 | @Override | 59 | @Override |
59 | public void addViewControllers(ViewControllerRegistry registry) { | 60 | public void addViewControllers(ViewControllerRegistry registry) { |
60 | - registry.addViewController("/").setViewName("index.html"); | 61 | + registry.addViewController("/").setViewName("doc.html"); |
61 | } | 62 | } |
62 | } | 63 | } |
jeecg-boot/jeecg-boot-module-system/src/main/resources/application.yml
@@ -4,6 +4,6 @@ spring: | @@ -4,6 +4,6 @@ spring: | ||
4 | swagger: | 4 | swagger: |
5 | production: false | 5 | production: false |
6 | basic: | 6 | basic: |
7 | - enable: true | 7 | + enable: false |
8 | username: jeecg | 8 | username: jeecg |
9 | password: jeecg1314 | 9 | password: jeecg1314 |
10 | \ No newline at end of file | 10 | \ No newline at end of file |