xiaoymin / blog-comments

blog-comments
0 stars 0 forks source link

SpringBoot访问doc.html页面404 | swagger-bootstrap-ui #102

Open xiaoymin opened 5 years ago

xiaoymin commented 5 years ago

http://doc.xiaominfo.com/guide/springboot-404.html

swagger-bootstrap-ui 指南

MatchstickShi commented 5 years ago

registry.addResourceHandler("doc.html")需要改成registry.addResourceHandler("/doc.html")

zhouheng001 commented 4 years ago

项目和swagger接口文档不在一起访问报404怎么解决

RR369-yyh commented 4 years ago

OMG,因为配置了 spring: mvc: static-path-pattern: /pre/** 静态资源配置,所以导致了此问题,emmmm...

zhouheng001 commented 4 years ago

好像不是这个原因,之前已经解决了,多谢

CandyKIng1991 commented 4 years ago

最简单示例https://www.cnblogs.com/liuyangfirst/p/12900597.html