I am using spring boot 2.6.9 with swagger.version 3.0.0. I already added below in the test yml,
spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher
But still i am getting below exception when running unit test. What am i missing?
Caused by: java.lang.NullPointerException: null
at springfox.documentation.spring.web.WebMvcPatternsRequestConditionWrapper.getPatterns(WebMvcPatternsRequestConditionWrapper.java:56) ~[springfox-spring-webmvc-3.0.0.jar:3.0.0]
You can use spring.mvc.pathmatch.matching-strategy=ant_path_matcher to solve this