From 24597ae4234196055b805de8321f96b06a97e073 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Fri, 11 Apr 2014 10:13:56 +0100 Subject: [PATCH] Rename identifier in the howto so that it's unique --- spring-boot-docs/src/main/asciidoc/howto.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-docs/src/main/asciidoc/howto.adoc index fb0c34823a..46948c4a06 100644 --- a/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -637,7 +637,7 @@ then `http://localhost:8080/thing` will serve a JSON representation of it by def Sometimes in a browser you might see XML responses (but by default only if `MyThing` was a JAXB object) because browsers tend to send accept headers that prefer XML. -[[howto-write-a-json-rest-service]] +[[howto-write-an-xml-rest-service]] === Write an XML REST service Since JAXB is in the JDK the same example as we used for JSON would work, as long as the `MyThing` was annotated as `@XmlRootElement`: