Programmer DD
May 26, 2022 · Backend Development
How to Fix Spring Boot 2.6 Swagger NullPointerException by Switching to ant_path_matcher
After upgrading to Spring Boot 2.6, a NullPointerException occurs when integrating Swagger due to the new PathPatternParser, and the issue can be resolved by changing the path‑matching strategy to ant_path_matcher or adding a custom WebMvcEndpointHandlerMapping bean.
BackendJavaPathPatternParser
0 likes · 7 min read
