访问后台默认进入swagger接口文档首页

pull/1738/head
zhangdaihao 2019-08-05 14:29:50 +08:00
parent f494305e1f
commit 29d77c89df
2 changed files with 4 additions and 3 deletions

View File

@ -53,10 +53,11 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
} }
/** /**
* 访 index.html webapp * 访 doc.html swagger
* 访 index.html webapp
*/ */
@Override @Override
public void addViewControllers(ViewControllerRegistry registry) { public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/").setViewName("index.html"); registry.addViewController("/").setViewName("doc.html");
} }
} }

View File

@ -4,6 +4,6 @@ spring:
swagger: swagger:
production: false production: false
basic: basic:
enable: true enable: false
username: jeecg username: jeecg
password: jeecg1314 password: jeecg1314