Class BroadleafSiteServletConfig
java.lang.Object
org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
org.broadleafcommerce.common.web.config.BroadleafSiteServletConfig
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration
@ConditionalOnNotAdmin
public class BroadleafSiteServletConfig
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
MVC configuration required by Broadleaf site to operate correctly.
- Author:
- Philip Baggett (pbaggett)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) org.springframework.web.servlet.LocaleResolverMethods inherited from class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
addArgumentResolvers, addCorsMappings, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
BroadleafSiteServletConfig
public BroadleafSiteServletConfig()
-
-
Method Details
-
addInterceptors
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) - Specified by:
addInterceptorsin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer- Overrides:
addInterceptorsin classorg.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
-
localeResolver
@Bean public org.springframework.web.servlet.LocaleResolver localeResolver()
-