Class ConfigurableContentNegotiationManagerWebMvcConfigurer
- java.lang.Object
-
- org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
-
- io.microsphere.spring.webmvc.config.ConfigurableContentNegotiationManagerWebMvcConfigurer
-
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public class ConfigurableContentNegotiationManagerWebMvcConfigurer extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
ConfigurableContentNegotiationManager
WebMvcConfigurer
- Since:
- 2017.03.23
- Author:
- Mercy
- See Also:
ContentNegotiationManager
,WebMvcConfigurer
-
-
Constructor Summary
Constructors Constructor Description ConfigurableContentNegotiationManagerWebMvcConfigurer(java.util.Map<java.lang.String,java.lang.String> properties)
-
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
-
-
-
-
Method Detail
-
configureContentNegotiation
public void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
- Specified by:
configureContentNegotiation
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
- Overrides:
configureContentNegotiation
in classorg.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
-
-