Getting following error while migrating my project from Spring boot version 2.1.6 to 2.4
No more pattern data allowed after {*...} or ** pattern element
Code Snippet where error is coming
public class WebConfig implements WebMvcConfigurer {
@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(authInterceptor)
.addPathPatterns("/**/test/**")
}
}
I know Spring boot disable AntPathMatcher in version 2.4 , so I tried this option as well
Spring.mvc.pathpattern.matching-strategy= ant_path_matcher
but even this is not working
Any help is much appreciated