Failed to start bean ‘documentationPluginsBootstrapper‘ [How to Solve]

Error when springboot integrates swagger:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
pplication run failed
org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
pplication run failed org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
pplication run failed

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

 

This is because the springboot version is too high, resulting in a bug.

Solution:

1. Reduce your SpringBoot version

2. Add the followings to your configuration file:

spring.mvc.pathmatch.matching-strategy=ant_path_matcher

Read More: