SpringBoot集成swagger后出现: Failed to start bean ‘documentationPluginsBootstrapper‘的解决方法

SpringBoot集成swagger后出现: Failed to start bean ‘documentationPluginsBootstrapper‘的编译错误:

org.springframework.context.ApplicationContextException:Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException

解决办法:在启动类加一个注解:@EnableWebMvc

参考来源:这个博客下边的评论处

其它参考文献:SpringBoot集成swagger后出现: Failed to start bean ‘documentationPluginsBootstrapper‘的解决方法


posted @ 2021-12-12 19:17  rainbow70626  阅读(18190)  评论(2编辑  收藏  举报