Class SpringConfigWeb

  • All Implemented Interfaces:
    org.springframework.web.servlet.config.annotation.WebMvcConfigurer

    @Configuration
    public class SpringConfigWeb
    extends Object
    implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • Constructor Summary

      Constructors 
      Constructor Description
      SpringConfigWeb()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addFormatters​(org.springframework.format.FormatterRegistry registry)  
      void addInterceptors​(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)  
      void configureContentNegotiation​(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)  
      void configurePathMatch​(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer)  
      org.springframework.format.support.FormattingConversionService conversionService()  
      com.fasterxml.jackson.databind.ObjectMapper objectMapper()  
      org.thymeleaf.dialect.AbstractProcessorDialect whiteSpaceNormalizedDialect()
      Needed to get rid of all the whitespaces in the rendered thymeleaf HTML
      • Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer

        addArgumentResolvers, addCorsMappings, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
    • Constructor Detail

      • SpringConfigWeb

        public SpringConfigWeb()
    • Method Detail

      • objectMapper

        @Bean
        @Primary
        public com.fasterxml.jackson.databind.ObjectMapper objectMapper()
      • conversionService

        @Bean
        public org.springframework.format.support.FormattingConversionService conversionService()
      • configurePathMatch

        public void configurePathMatch​(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer)
        Specified by:
        configurePathMatch in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
      • configureContentNegotiation

        public void configureContentNegotiation​(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
        Specified by:
        configureContentNegotiation in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
      • whiteSpaceNormalizedDialect

        @Bean
        public org.thymeleaf.dialect.AbstractProcessorDialect whiteSpaceNormalizedDialect()
        Needed to get rid of all the whitespaces in the rendered thymeleaf HTML
        Returns:
        the dialect
      • addFormatters

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

        public void addInterceptors​(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
        Specified by:
        addInterceptors in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer