Browse Source

Fix Jackson documentation broken links

Closes gh-23153
pull/23837/head
Sebastien Deleuze 5 years ago
parent
commit
bcad276adb
  1. 2
      spring-web/src/main/java/org/springframework/http/codec/json/Jackson2CodecSupport.java
  2. 2
      spring-web/src/main/java/org/springframework/http/converter/json/MappingJackson2HttpMessageConverter.java
  3. 2
      spring-webmvc/src/main/java/org/springframework/web/servlet/view/json/MappingJackson2JsonView.java
  4. 2
      spring-webmvc/src/main/java/org/springframework/web/servlet/view/xml/MappingJackson2XmlView.java
  5. 2
      src/docs/asciidoc/integration.adoc
  6. 2
      src/docs/asciidoc/web/webflux-functional.adoc
  7. 2
      src/docs/asciidoc/web/webflux.adoc
  8. 2
      src/docs/asciidoc/web/webmvc.adoc

2
spring-web/src/main/java/org/springframework/http/codec/json/Jackson2CodecSupport.java

@ -52,7 +52,7 @@ public abstract class Jackson2CodecSupport { @@ -52,7 +52,7 @@ public abstract class Jackson2CodecSupport {
/**
* The key for the hint to specify a "JSON View" for encoding or decoding
* with the value expected to be a {@link Class}.
* @see <a href="https://wiki.fasterxml.com/JacksonJsonViews">Jackson JSON Views</a>
* @see <a href="https://www.baeldung.com/jackson-json-view-annotation">Jackson JSON Views</a>
*/
public static final String JSON_VIEW_HINT = Jackson2CodecSupport.class.getName() + ".jsonView";

2
spring-web/src/main/java/org/springframework/http/converter/json/MappingJackson2HttpMessageConverter.java

@ -26,7 +26,7 @@ import org.springframework.lang.Nullable; @@ -26,7 +26,7 @@ import org.springframework.lang.Nullable;
/**
* Implementation of {@link org.springframework.http.converter.HttpMessageConverter} that can read and
* write JSON using <a href="https://wiki.fasterxml.com/JacksonHome">Jackson 2.x's</a> {@link ObjectMapper}.
* write JSON using <a href="https://github.com/FasterXML/jackson">Jackson 2.x's</a> {@link ObjectMapper}.
*
* <p>This converter can be used to bind to typed beans, or untyped {@code HashMap} instances.
*

2
spring-webmvc/src/main/java/org/springframework/web/servlet/view/json/MappingJackson2JsonView.java

@ -35,7 +35,7 @@ import org.springframework.web.servlet.View; @@ -35,7 +35,7 @@ import org.springframework.web.servlet.View;
/**
* Spring MVC {@link View} that renders JSON content by serializing the model for the current request
* using <a href="https://wiki.fasterxml.com/JacksonHome">Jackson 2's</a> {@link ObjectMapper}.
* using <a href="https://github.com/FasterXML/jackson">Jackson 2's</a> {@link ObjectMapper}.
*
* <p>By default, the entire contents of the model map (with the exception of framework-specific classes)
* will be encoded as JSON. If the model contains only one key, you can have it extracted encoded as JSON

2
spring-webmvc/src/main/java/org/springframework/web/servlet/view/xml/MappingJackson2XmlView.java

@ -30,7 +30,7 @@ import org.springframework.web.servlet.view.json.AbstractJackson2View; @@ -30,7 +30,7 @@ import org.springframework.web.servlet.view.json.AbstractJackson2View;
/**
* Spring MVC {@link View} that renders XML content by serializing the model for the current request
* using <a href="https://wiki.fasterxml.com/JacksonHome">Jackson 2's</a> {@link XmlMapper}.
* using <a href="https://github.com/FasterXML/jackson">Jackson 2's</a> {@link XmlMapper}.
*
* <p>The Object to be serialized is supplied as a parameter in the model. The first serializable
* entry is used. Users can either specify a specific entry in the model via the

2
src/docs/asciidoc/integration.adoc

@ -1257,7 +1257,7 @@ and writes the media type supported by the Java I/O API. @@ -1257,7 +1257,7 @@ and writes the media type supported by the Java I/O API.
[[rest-template-jsonview]]
===== Jackson JSON Views
You can specify a https://wiki.fasterxml.com/JacksonJsonViews[Jackson JSON View]
You can specify a https://www.baeldung.com/jackson-json-view-annotation[Jackson JSON View]
to serialize only a subset of the object properties, as the following example shows:
====

2
src/docs/asciidoc/web/webflux-functional.adoc

@ -183,7 +183,7 @@ ServerResponse.created(location).build(); @@ -183,7 +183,7 @@ ServerResponse.created(location).build();
====
Depending on the codec used, it is possible to pass hint parameters to customize how the
body is serialized or deserialized. For example, to specify a https://wiki.fasterxml.com/JacksonJsonViews[Jackson JSON view]:
body is serialized or deserialized. For example, to specify a https://www.baeldung.com/jackson-json-view-annotation[Jackson JSON view]:
====
[source,java]

2
src/docs/asciidoc/web/webflux.adoc

@ -2459,7 +2459,7 @@ Spring offers support for the Jackson JSON library. @@ -2459,7 +2459,7 @@ Spring offers support for the Jackson JSON library.
[.small]#<<web.adoc#mvc-ann-jackson, Same as in Spring MVC>>#
Spring WebFlux provides built-in support for
https://wiki.fasterxml.com/JacksonJsonViews[Jackson's Serialization Views],
https://www.baeldung.com/jackson-json-view-annotation[Jackson's Serialization Views],
which allows rendering only a subset of all fields in an `Object`. To use it with
`@ResponseBody` or `ResponseEntity` controller methods, you can use Jackson's
`@JsonView` annotation to activate a serialization view class, as the following example shows:

2
src/docs/asciidoc/web/webmvc.adoc

@ -2789,7 +2789,7 @@ Spring offers support for the Jackson JSON library. @@ -2789,7 +2789,7 @@ Spring offers support for the Jackson JSON library.
[.small]#<<web-reactive.adoc#webflux-ann-jsonview, Same as in Spring WebFlux>>#
Spring MVC provides built-in support for
https://wiki.fasterxml.com/JacksonJsonViews[Jackson's Serialization Views],
https://www.baeldung.com/jackson-json-view-annotation[Jackson's Serialization Views],
which allow rendering only a subset of all fields in an `Object`. To use it with
`@ResponseBody` or `ResponseEntity` controller methods, you can use Jackson's
`@JsonView` annotation to activate a serialization view class, as the following example shows:

Loading…
Cancel
Save