SpringBoot问题 - URL大小写不敏感
2019-11-06 本文已影响0人
鱼da王
Show code
@Configuration
public class WebInterceptorAdapter implements WebMvcConfigurer {
@Override
public void configurePathMatch(PathMatchConfigurer configurer) {
AntPathMatcher pathMatcher = new AntPathMatcher();
pathMatcher.setCaseSensitive(false);
configurer.setPathMatcher(pathMatcher);
}
}