Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException: Cannot invoke "org.springframework.web.servlet.mvc.condition.PatternsRequestCondition.toString()" because the return value of "springfox.documentation.spi.service.contexts.Orderings.patternsCondition(springfox.documentation.RequestHandler)" is null
添加
spring:
mvc:
pathmatch:
# spring boot 2.6 PathPatternMatcher
matching-strategy: ANT_PATH_MATCHER
本文介绍了解决Spring Boot应用中文档插件启动失败的问题,具体表现为NullPointerException异常,涉及springfox文档生成组件与Spring Boot路径匹配策略之间的冲突。通过调整Spring配置解决了该问题。

1514

被折叠的 条评论
为什么被折叠?



