Package org.localify.common.config.v1
Class MvcConfig
java.lang.Object
org.localify.common.config.v1.MvcConfig
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration
public class MvcConfig
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Configuration for MVC, including CORS mappings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry) Configures CORS mappings.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
MvcConfig
Constructs a new MvcConfig.- Parameters:
properties- The application properties.
-
-
Method Details
-
addCorsMappings
public void addCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry) Configures CORS mappings.- Specified by:
addCorsMappingsin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer- Parameters:
registry- The CORS registry.
-