@Configuration
public class MvcConfig
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
| 构造器和说明 |
|---|
MvcConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry) |
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidatorpublic void addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry)
addViewControllers 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigureraddViewControllers 在类中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter