接口的使用
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中的类 修饰符和类型 类 说明 classWebMvcConfigurerAdapter已过时。as of 5.0WebMvcConfigurerhas 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中的方法参数 修饰符和类型 方法 说明 voidDelegatingWebMvcConfiguration. setConfigurers(List<WebMvcConfigurer> configurers)