springfox / springfox-demos

Springfox demo applications
http://springfox.io
Apache License 2.0
737 stars 353 forks source link

documentationPluginsBootstrapper error in spring fox #184

Open jeevitesh opened 3 months ago

jeevitesh commented 3 months ago

Hi all, We are on spring boot 2.7.18 and spring fox springfox-swagger2.version = 2.9.2 based microservice project, during running of server below error is received.

Im trying to resolve this issue from several weeks. searched in net and stack over flow from several weeks.

Applied all the solution like

  1. Checked all the version of springfox-swagger2.version from 2.9.2 to 3.0.0
  2. Added springfox MVC library in the pom. 3.Added spring.mvc.pathmatch.matching-strategy=ant-path-matcher

still not able to resolve the issue.

Please help us to resolve the issue.

Error [main] [11ef5327f513571b97c200ffb15384cf] ERROR o.s.boot.SpringApplication - Application run failed org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException: Cannot invoke "org.springframework.web.servlet.mvc.condition.PatternsRequestCondition.toString()" because the return value of "springfox.documentation.spi.service.contexts.Orderings.patternsCondition(springfox.documentation.RequestHandler)" is null at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:182) at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:54) at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:357) at java.base/java.lang.Iterable.forEach(Iterable.java:75) at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:156)