Failed to start bean ‘documentationPluginsBootstrapper‘;

org.springframework.context.ApplicationContextException: 
Failed to start bean 'documentationPluginsBootstrapper'; 
nested exception is java.lang.NullPointerException: 
Cannot invoke "org.springframework.web.servlet.mvc.condition.PatternsRequestCondition.getPatterns()" 
because "this.condition" is null

配置信息:java-16 开发平台 VScode
使用spring boot集合配置swagger3的时候,遇到了上面一个问题,找了很久的原因,都没有找到,直到今天我在github上spring的一个issue中看到了找到了一个大神的评论:
Failed to start bean ‘documentationPluginsBootstrapper‘;_第1张图片
我使用的最新版本的spring boot 就是2.6.0-M3,然后发现这可能不是我自己配置的原因,而是官方的一个没有修复的BUG,我在pom.xml里把spring boot的版本改为2.6.0-M2之后配置成功了。

Failed to start bean ‘documentationPluginsBootstrapper‘;_第2张图片

你可能感兴趣的:(spring,boot,java,bug)