Class WebConfig

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

    @EnableWebMvc
    @Configuration
    @PropertySource("classpath:odata.properties")
    public class WebConfig
    extends Object
    implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • Constructor Summary

      Constructors 
      Constructor Description
      WebConfig()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCorsMappings​(org.springframework.web.servlet.config.annotation.CorsRegistry registry)  
      void addInterceptors​(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)  
      org.springframework.web.filter.CommonsRequestLoggingFilter requestLoggingFilter()  
      • Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer

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

      • WebConfig

        public WebConfig()
    • Method Detail

      • requestLoggingFilter

        @Bean
        public org.springframework.web.filter.CommonsRequestLoggingFilter requestLoggingFilter()
      • addInterceptors

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

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