springboot url忽略大小写

java学习,做下笔记

@Configuration
public class WebConfig extends WebMvcConfigurerAdapter {
@Override
public void configurePathMatch(PathMatchConfigurer configurer) {
AntPathMatcher matcher = new AntPathMatcher();
matcher.setCaseSensitive(false);
configurer.setPathMatcher(matcher);
}
}
posted @ 2018-03-20 11:38  经常躺枪的小明  阅读(2694)  评论(1编辑  收藏  举报