Class 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 Detail

      • SpringConfigWeb

        public SpringConfigWeb()
    • Method Detail

      • addResourceHandlers

        public void addResourceHandlers​(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
        Specified by:
        addResourceHandlers in interface org.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 interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
      • localeResolver

        @Bean
        public org.springframework.web.servlet.i18n.SessionLocaleResolver localeResolver()
      • logSessionIdFilter

        @Bean
        public org.springframework.boot.web.servlet.FilterRegistrationBean logSessionIdFilter()
      • languageSortingHelper

        @Bean
        public LanguageSortingHelper languageSortingHelper​(@Value("${cudami.prioritisedSortedLanguages}")
                                                           List<Locale> prioritisedSortedLanguages)
      • addFormatters

        public void addFormatters​(org.springframework.format.FormatterRegistry registry)
        Specified by:
        addFormatters in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer