Class ConfigurableContentNegotiationManagerWebMvcConfigurer

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

    public class ConfigurableContentNegotiationManagerWebMvcConfigurer
    extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
    Configurable ContentNegotiationManager WebMvcConfigurer
    Since:
    2017.03.23
    Author:
    Mercy
    See Also:
    ContentNegotiationManager, WebMvcConfigurer
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configureContentNegotiation​(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)  
      protected void configureContentNegotiationManagerFactoryBean​(org.springframework.web.accept.ContentNegotiationManagerFactoryBean factoryBean)  
      static java.util.Map<java.lang.String,​java.lang.Object> resolveNestedMap​(java.util.Map<java.lang.String,​java.lang.String> properties)
      properties.put("a.b.1", "1"); properties.put("a.b.2", "2"); properties.put("d.e.f.1", "1"); properties.put("d.e.f.2", "2"); properties.put("d.e.f.3", "3"); resolved result : {a={b={1=1, 2=2}}, d={e={f={1=1, 2=2, 3=3}}}}
      • Methods inherited from class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter

        addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConfigurableContentNegotiationManagerWebMvcConfigurer

        public ConfigurableContentNegotiationManagerWebMvcConfigurer​(java.util.Map<java.lang.String,​java.lang.String> properties)
    • Method Detail

      • configureContentNegotiation

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

        protected void configureContentNegotiationManagerFactoryBean​(org.springframework.web.accept.ContentNegotiationManagerFactoryBean factoryBean)
      • resolveNestedMap

        public static java.util.Map<java.lang.String,​java.lang.Object> resolveNestedMap​(java.util.Map<java.lang.String,​java.lang.String> properties)
        properties.put("a.b.1", "1"); properties.put("a.b.2", "2"); properties.put("d.e.f.1", "1"); properties.put("d.e.f.2", "2"); properties.put("d.e.f.3", "3"); resolved result : {a={b={1=1, 2=2}}, d={e={f={1=1, 2=2, 3=3}}}}
        Parameters:
        properties - Properties
        Returns:
        Resolved properties