接口的使用
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
使用WebMvcConfigurer的程序包 程序包 说明 org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.servlet.config.annotation中WebMvcConfigurer的使用
实现WebMvcConfigurer的org.springframework.web.servlet.config.annotation中的类 修饰符和类型 类 说明 class
WebMvcConfigurerAdapter
已过时。as of 5.0WebMvcConfigurer
has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter类型变量类型为WebMvcConfigurer的org.springframework.web.servlet.config.annotation中的方法参数 修饰符和类型 方法 说明 void
DelegatingWebMvcConfiguration. setConfigurers(List<WebMvcConfigurer> configurers)