【发布时间】:2018-12-03 20:23:05
【问题描述】:
我正在尝试使用 Springfox 并遵循 https://www.baeldung.com/swagger-2-documentation-for-spring-rest-api 文档从 springboot 项目生成 Swagger 文档。
最初我收到错误“访问资源需要完全授权”,因为我在我的应用程序中使用 OAuth2。我更改了配置以允许所有以 /swagger-ui.html 结尾的请求。
现在我在尝试访问本地的 /swagger-ui.html 时收到“WhiteLabel 错误页面 - 此应用程序没有明确的 /error 映射”。
我浏览了各种帖子,但没有一个解决方案对我有用——我没有使用可能会干扰的@webmvcconfiguration。 有人可以帮忙吗?
【问题讨论】:
标签: spring-boot swagger springfox