From 65e34a7800ac64a191ac8eddc82bc08685628c4a Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Thu, 10 Apr 2014 10:05:59 +0100 Subject: [PATCH] @Controller -> @RestController in README Fixes gh-652 some more --- README.adoc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.adoc b/README.adoc index 4a07dcaeb27..47598f012a3 100644 --- a/README.adoc +++ b/README.adoc @@ -29,21 +29,19 @@ started''] guide. Documentation is published in {docs}/htmlsingle/[HTML], {docs}/pdf/spring-boot-reference.pdf[PDF] and {docs}/epub/spring-boot-reference.epub[EPUB] formats. -Here is a quick teaser of a Spring Boot application: +Here is a quick teaser of a complete Spring Boot application in Java: [source,java,indent=0] ---- import org.springframework.boot.*; import org.springframework.boot.autoconfigure.*; - import org.springframework.stereotype.*; import org.springframework.web.bind.annotation.*; - @Controller + @RestController @EnableAutoConfiguration public class Example { @RequestMapping("/") - @ResponseBody String home() { return "Hello World!"; }