Class SpringConfigWeb
java.lang.Object
de.digitalcollections.cudami.admin.config.SpringConfigWeb
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration
@ComponentScan(basePackages="de.digitalcollections.commons.springmvc.controller",
excludeFilters=)
@Import(de.digitalcollections.commons.springmvc.config.SpringConfigCommonsMvc.class)
public class SpringConfigWeb
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFormatters
(org.springframework.format.FormatterRegistry registry) void
addInterceptors
(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) void
addResourceHandlers
(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) com.github.mxab.thymeleaf.extras.dataattribute.dialect.DataAttributeDialect
nz.net.ultraq.thymeleaf.layoutdialect.LayoutDialect
org.springframework.web.servlet.i18n.LocaleChangeInterceptor
org.springframework.web.servlet.i18n.SessionLocaleResolver
org.springframework.boot.web.servlet.FilterRegistrationBean
org.springframework.context.MessageSource
Create a resource bundle for your messages ("messages.properties").com.fasterxml.jackson.databind.ObjectMapper
org.thymeleaf.extras.springsecurity5.dialect.SpringSecurityDialect
org.thymeleaf.dialect.AbstractProcessorDialect
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
SpringConfigWeb
public SpringConfigWeb()
-
-
Method Details
-
addResourceHandlers
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) - Specified by:
addResourceHandlers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
objectMapper
@Bean @Primary public com.fasterxml.jackson.databind.ObjectMapper objectMapper() -
dataAttributeDialect
@Bean public com.github.mxab.thymeleaf.extras.dataattribute.dialect.DataAttributeDialect dataAttributeDialect() -
layoutDialect
@Bean public nz.net.ultraq.thymeleaf.layoutdialect.LayoutDialect layoutDialect() -
whiteSpaceNormalizedDialect
@Bean public org.thymeleaf.dialect.AbstractProcessorDialect whiteSpaceNormalizedDialect() -
springSecurityDialect
@Bean public org.thymeleaf.extras.springsecurity5.dialect.SpringSecurityDialect springSecurityDialect() -
localeChangeInterceptor
@Bean public org.springframework.web.servlet.i18n.LocaleChangeInterceptor localeChangeInterceptor() -
addInterceptors
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) - Specified by:
addInterceptors
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
localeResolver
@Bean public org.springframework.web.servlet.i18n.SessionLocaleResolver localeResolver() -
createAdminUserInterceptor
-
logSessionIdFilter
@Bean public org.springframework.boot.web.servlet.FilterRegistrationBean logSessionIdFilter() -
messageSource
@Bean(name="messageSource") public org.springframework.context.MessageSource messageSource()Create a resource bundle for your messages ("messages.properties"). This file goes in src/main/resources because you want it to appear at the root of the classpath on deployment.- Returns:
- message source
-
addFormatters
public void addFormatters(org.springframework.format.FormatterRegistry registry) - Specified by:
addFormatters
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-