When I upgrade my Spring Boot API to 2.6.1 version, I am getting this error.
URL ant matcher in my API likes: /v1/token/**
.
Any solution for this error:
Invalid mapping pattern detected: /**/swagger-ui/**
^
No more pattern data allowed after {*...} or ** pattern element
Action:
Fix this pattern in your application or switch to the legacy parser
implementation with 'spring.mvc.pathmatch.matching-strategy=ant_path_matcher'.
I already added the spring.mvc.pathpattern.matching-strategy=ant_path_matcher
to application.properties
file, but it not works.