Cannot invoke “org.springframework.web.servlet.mvc.condition.PatternsRequestCondition.getPatterns()” because “this.condition” is null
This problem is caused by the new PathPatternParser introduced in Spring Boot 2.6. There are two ways to resolve: As suggested by @gsan in the comment, add following in your application.yml or application.properties: spring.mvc.pathmatch.matching-strategy=ant_path_matcher OR Add the following bean in your config class: import org.springframework.boot.actuate.autoconfigure.endpoint.web.CorsEndpointProperties; import org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties; import org.springframework.boot.actuate.autoconfigure.web.server.ManagementPortType; import org.springframework.boot.actuate.endpoint.ExposableEndpoint; import org.springframework.boot.actuate.endpoint.web.EndpointLinksResolver; import org.springframework.boot.actuate.endpoint.web.EndpointMapping; … Read more