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 | 53 | } |
54 | 54 | |
55 | 55 | /** |
56 | - * 访问根路径默认跳转 index.html页面 (简化部署方案: 可以把前端打包直接放到项目的 webapp,上面的配置) | |
56 | + * 方案一: 默认访问根路径跳转 doc.html页面 (swagger文档页面) | |
57 | + * 方案二: 访问根路径改成跳转 index.html页面 (简化部署方案: 可以把前端打包直接放到项目的 webapp,上面的配置) | |
57 | 58 | */ |
58 | 59 | @Override |
59 | 60 | public void addViewControllers(ViewControllerRegistry registry) { |
60 | - registry.addViewController("/").setViewName("index.html"); | |
61 | + registry.addViewController("/").setViewName("doc.html"); | |
61 | 62 | } |
62 | 63 | } |
... | ... |