我正在使用'org.springdoc:springdoc-openapi-webflux-ui:1.2.28'
库在我的 spring-boot 应用程序中显示 swagger UI API 文档。http://localhost:8080/swagger-ui.html不起作用,它返回:
Whitelabel Error Page
This application has no configured error view, so you are seeing this as a fallback.
Fri Jan 24 11:31:02 UTC 2020
[b0282788] There was an unexpected error (type=Not Found, status=404).
No matching handler
很快这个问题:How to display app API documentation by using springdoc-openapi-webflux-ui?
我找到了一个原因。Predicate
类的字段RouterFunctions.DefaultRouterFunction<T extends ServerResponse>
有时会DefaultErrorWebExceptionHandler
作为该对象的值: