[Solved] swagger Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception is java.lang.NullP

Null pointer exception when adding swagger dependency to the project

Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPointerException

The swagger and UI I use here are both version 2.9.2, but my springboot is version 2.6

Springfox uses path matching based on AntPathMatcher, while spring boot 2.6.x uses PathPatternMatcher. The two solutions are as follows:

1. Modify the version of springboot and use the earlier version to solve this problem;

2. Add in the configuration file




Read More: