documentationPluginsBootstrapper【已解决】

springboot整合swagger时出现了此问题

2022-03-10 09:13:50.929 ERROR 24756 --- [           main] o.s.boot.SpringApplication               : Application run failed

org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
	at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:181) ~[spring-context-5.3.16.jar:5.3.16]

解决办法

1 降低springboot的版本,降到2.6以下,比如2.5.10
documentationPluginsBootstrapper【已解决】_第1张图片
2 加上@EnableWebMvc注解
documentationPluginsBootstrapper【已解决】_第2张图片
3 实体嵌套异常,比如a中有b, b中也有a

你可能感兴趣的:(spring,boot,java,intellij-idea)