1
resposta

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.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:181) ~[spring-context-5.3.14.jar:5.3.14] at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:54) ~[spring-context-5.3.14.jar:5.3.14] at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:356) ~[spring-context-5.3.14.jar: ........

CODIGO: https://github.com/oneyottabyte/forum
1 resposta

Oi Dorian,

É um problema que ocorre por conta de uma mudança que entrou na versão 2.6 do Spring Boot.

Adicione essa linha no application.properties que resolve:

spring.mvc.pathmatch.matching-strategy=ant_path_matcher

Obs: se o actuator for adicionado ao projeto o erro vai voltar a ocorrer.