spring boot2.7 整合knife4j 报错:Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPoint
在 Spring Boot 2.6.0 及以上版本中,默认的路径匹配策略从 AntPathMatcher 变为了 PathPatternParser。这可能会导致一些依赖于旧路径匹配策略的库(如 knife4j)出现问题。通过显式地设置 spring.mvc.pathmatch.matching-strategy=ant_path_matcher,你可以恢复到旧的路径匹配策略,从而避免这些问题。