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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFormatters(org.springframework.format.FormatterRegistry registry) voidaddInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) voidaddResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) com.github.mxab.thymeleaf.extras.dataattribute.dialect.DataAttributeDialectnz.net.ultraq.thymeleaf.layoutdialect.LayoutDialectorg.springframework.web.servlet.i18n.LocaleChangeInterceptororg.springframework.web.servlet.i18n.SessionLocaleResolverorg.springframework.boot.web.servlet.FilterRegistrationBeanorg.springframework.context.MessageSourceCreate a resource bundle for your messages ("messages.properties").com.fasterxml.jackson.databind.ObjectMapperorg.thymeleaf.extras.springsecurity5.dialect.SpringSecurityDialectorg.thymeleaf.dialect.AbstractProcessorDialectMethods 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, 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:
addResourceHandlersin 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:
addInterceptorsin 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:
addFormattersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-