This
application.properties file spring.mvc.pathmatch.matching-strategy = ant-path-matcher
does not work with
<!-- https://mvnrepository.com/artifact/io.springfox/springfox-boot-starter -->
<!-- <dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-boot-starter</artifactId>
<version>3.0.0</version>
</dependency> -->
in pom.xml file
but does work with this :
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-actuator -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<version>2.7.4</version>
</dependency>
in pom.xml file.
How one can set the application.properties file property spring.mvc.pathmatch.matching-strategy = ? such that both dependencies are used in the same application without having the error :
> java.lang.IllegalStateException: Failed to load ApplicationContext Caused by: org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException: Cannot invoke "org.springframework.web.servlet.mvc.condition.PatternsRequestCondition.getPatterns()" because "this.condition" is null Caused by: java.lang.NullPointerException: Cannot invoke "org.springframework.web.servlet.mvc.condition.PatternsRequestCondition.getPatterns()" because "this.condition" is null
at maven clean install command .