SpringBoot之WebMvcConfigurationSupport与WebMvcConfigurer
查看源码注释上查到的解释是,在spring中配置WebMvc时有两种方法,1.继承WebMvcConfigurationSupport或者子类DelegatingWebMVcconfiguration,重写里面相应的方法2.继承WebMvcConfigurer的子抽象类WebMvcConfigurerAdapter(已经过时了),也是重写里面相应的方法,但是需要在配置类上添加@Enable...
原创
2020-02-28 12:48:09 ·
4367 阅读 ·
0 评论