In Spring Boot 2.6.7, I want to set up all of my controllers' URLs to be case-insensitive.
I tried this but it does not work
@Configuration
public class WebConfig extends WebMvcConfigurerAdapter {
@Override
public void configurePathMatch(PathMatchConfigurer configurer) {
AntPathMatcher matcher = new AntPathMatcher();
matcher.setCaseSensitive(false);
configurer.setPathMatcher(matcher);
}
}
Can we configure it through application.properties file?