SpringBoot url is not case sensitive

1 can be configured in the tomcat configuration file

2


@Configuration
public class WebConfig extends WebMvcConfigurerAdapter {
@Override
public void configurePathMatch(PathMatchConfigurer configurer) {
AntPathMatcher matcher = new AntPathMatcher();
matcher.setCaseSensitive(false);
configurer.setPathMatcher(matcher);
}
}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325904438&siteId=291194637