mirror of https://github.com/jeecgboot/jeecg-boot
访问后台默认进入swagger接口文档首页
parent
f494305e1f
commit
29d77c89df
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,6 +4,6 @@ spring:
|
|||
swagger:
|
||||
production: false
|
||||
basic:
|
||||
enable: true
|
||||
enable: false
|
||||
username: jeecg
|
||||
password: jeecg1314
|
Loading…
Reference in New Issue