mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-26 08:59:09 +00:00
Marked Jackson 1.x support classes as deprecated
This commit is contained in:
+3
@@ -80,11 +80,14 @@ import org.springframework.beans.factory.InitializingBean;
|
||||
* </pre>
|
||||
*
|
||||
* <p><b>NOTE:</b> Requires Jackson 1.8 or higher, as of Spring 4.0.
|
||||
* At the same time, we strongly recommend a migration to Jackson 2.x!
|
||||
*
|
||||
* @author <a href="mailto:dmitry.katsubo@gmail.com">Dmitry Katsubo</a>
|
||||
* @author Rossen Stoyanchev
|
||||
* @since 3.2
|
||||
* @deprecated Please migrate to {@link Jackson2ObjectMapperFactoryBean} for Jackson 2.x.
|
||||
*/
|
||||
@Deprecated
|
||||
public class JacksonObjectMapperFactoryBean implements FactoryBean<ObjectMapper>, InitializingBean {
|
||||
|
||||
private ObjectMapper objectMapper;
|
||||
|
||||
+4
@@ -26,6 +26,7 @@ import org.codehaus.jackson.JsonProcessingException;
|
||||
import org.codehaus.jackson.map.ObjectMapper;
|
||||
import org.codehaus.jackson.map.SerializationConfig;
|
||||
import org.codehaus.jackson.type.JavaType;
|
||||
|
||||
import org.springframework.http.HttpInputMessage;
|
||||
import org.springframework.http.HttpOutputMessage;
|
||||
import org.springframework.http.MediaType;
|
||||
@@ -45,11 +46,14 @@ import org.springframework.util.Assert;
|
||||
* {@link #setSupportedMediaTypes supportedMediaTypes} property.
|
||||
*
|
||||
* <p><b>NOTE:</b> Requires Jackson 1.8 or higher, as of Spring 4.0.
|
||||
* At the same time, we strongly recommend a migration to Jackson 2.x!
|
||||
*
|
||||
* @author Arjen Poutsma
|
||||
* @author Juergen Hoeller
|
||||
* @since 3.0
|
||||
* @deprecated Please migrate to {@link MappingJackson2HttpMessageConverter} for Jackson 2.x.
|
||||
*/
|
||||
@Deprecated
|
||||
public class MappingJacksonHttpMessageConverter extends AbstractHttpMessageConverter<Object>
|
||||
implements GenericHttpMessageConverter<Object> {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user