I am trying to configure Spring Data Rest to have an insensitive path matching for the repositories. So "/user" and "/User" should both be acceptable and lead to the user repository.
I have tried to configure it like this (as proposed in https://jira.spring.io/browse/SPR-13286) without success.
@Configuration
public class WebConfig extends WebMvcConfigurerAdapter {
@Override
public void configurePathMatch(PathMatchConfigurer configurer) {
AntPathMatcher matcher = new AntPathMatcher();
matcher.setCaseSensitive(false);
configurer.setPathMatcher(matcher);
}
}
I'm using the 2.4.0.RELEASE of Spring Data Rest.