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

Error when springboot integrates swagger:

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: