@Configuration
@EnableWebMvc
public class WebConfig
extends java.lang.Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Constructor and Description |
---|
WebConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry corsRegistry) |
void |
addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addArgumentResolvers, addFormatters, addInterceptors, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
public void addCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry corsRegistry)
addCorsMappings
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
addResourceHandlers
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer