Springboot 2.5.13,swagger2:
实现“io.springfox:springfox-boot-starter:3.0.0”
实现“io.springfox:springfox-swagger-ui:3.0.0”
运行时错误:
无法解析名称为“forward:/swagger-ui/index.html”的视图
解决方案:创建一个像这样的bean:
@Bean
public InternalResourceViewResolver defaultViewResolver() {
return new InternalResourceViewResolver();
}
source: https://github.com/springdoc/springdoc-openapi/issues/236
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)