@Configuration
@EnableWebMvc
@ComponentScan("com.nana")
public class MyMvcConfig extends WebMvcConfigurerAdapter{
/**
* 重写configurePathMatch此方法
* 设置其参数PathMatchConfigurer的属性UseSuffixPatternMatch值为false
* 可以让路径中带小数点“.”后面的值不被忽略
*/
@Override
public void configurePathMatch(PathMatchConfigurer configurer){
configurer.setUseSuffixPatternMatch(false);
}
}
springmvc 不忽略 .
猜你喜欢
转载自blog.csdn.net/july_young/article/details/82791734
今日推荐
周排行