@Configuration @Import(value=JsonviewWebMvcConfigurer.class) public class JsonviewComponentAutoConfiguration extends Object
EnableJsonviewAutoConfiguration| 构造器和说明 |
|---|
JsonviewComponentAutoConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
DataModelReturnValueHandler |
getDataModelReturnValueHandler(com.github.developframework.jsonview.core.JsonviewFactory jsonviewFactory) |
com.github.developframework.jsonview.core.JsonviewFactory |
getJsonviewFactoryForDefaultObjectMapper(JsonviewProperties jsonviewProperties,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
com.github.developframework.jsonview.core.JsonviewFactory |
getJsonviewFactoryForNewObjectMapper(JsonviewProperties jsonviewProperties) |
JsonviewResponseReturnValueHandler |
getJsonviewResponseReturnValueHandler(com.github.developframework.jsonview.core.JsonviewFactory jsonviewFactory) |
@Bean
@Autowired
@ConditionalOnProperty(name="jsonview.objectmapper.usedefault",
havingValue="true",
matchIfMissing=true)
public com.github.developframework.jsonview.core.JsonviewFactory getJsonviewFactoryForDefaultObjectMapper(JsonviewProperties jsonviewProperties,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
@Bean
@Autowired
@ConditionalOnProperty(name="jsonview.objectmapper.usedefault",
havingValue="false")
public com.github.developframework.jsonview.core.JsonviewFactory getJsonviewFactoryForNewObjectMapper(JsonviewProperties jsonviewProperties)
@Bean @Autowired public DataModelReturnValueHandler getDataModelReturnValueHandler(com.github.developframework.jsonview.core.JsonviewFactory jsonviewFactory)
@Bean @Autowired public JsonviewResponseReturnValueHandler getJsonviewResponseReturnValueHandler(com.github.developframework.jsonview.core.JsonviewFactory jsonviewFactory)
Copyright © 2016. All rights reserved.