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‘的解决方法


原文地址:https://www.cnblogs.com/rainbow70626/p/15680184.html