Class ConfigurableContentNegotiationManagerWebMvcConfigurer
java.lang.Object
io.microsphere.spring.webmvc.config.ConfigurableContentNegotiationManagerWebMvcConfigurer
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public class ConfigurableContentNegotiationManagerWebMvcConfigurer
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Configurable
ContentNegotiationManager
WebMvcConfigurer
- Since:
- 2017.03.23
- Author:
- Mercy
- See Also:
-
ContentNegotiationManager
WebMvcConfigurer
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureContentNegotiation
(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer) protected void
configureContentNegotiationManagerFactoryBean
(org.springframework.web.accept.ContentNegotiationManagerFactoryBean factoryBean) resolveNestedMap
(Map<String, 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addErrorResponseInterceptors, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
ConfigurableContentNegotiationManagerWebMvcConfigurer
-
-
Method Details
-
configureContentNegotiation
public void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer) - Specified by:
configureContentNegotiation
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
configureContentNegotiationManagerFactoryBean
protected void configureContentNegotiationManagerFactoryBean(org.springframework.web.accept.ContentNegotiationManagerFactoryBean factoryBean) -
resolveNestedMap
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
-