diff --git a/spring-boot-docs/src/main/asciidoc/getting-started.adoc b/spring-boot-docs/src/main/asciidoc/getting-started.adoc index 7afada0927c..6189fdc2514 100644 --- a/spring-boot-docs/src/main/asciidoc/getting-started.adoc +++ b/spring-boot-docs/src/main/asciidoc/getting-started.adoc @@ -339,7 +339,7 @@ a file called `app.groovy`: @RequestMapping("/") String home() { - return "Hello World!" + "Hello World!" } } diff --git a/spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc b/spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc index a531ab1d196..94e46d1f292 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc @@ -87,7 +87,7 @@ Here is an example ``hello world'' web application written in Groovy: @RequestMapping("/") String home() { - return "Hello World!" + "Hello World!" } } @@ -190,7 +190,7 @@ In this example, `tests.groovy` contains JUnit `@Test` methods or Spock `Specifi classes. All the common framework annotations and static methods should be available to you without having to `import` them. -Here is the `test.groovy` file that we used above: +Here is the `test.groovy` file that we used above (with a JUnit test): [source,groovy,indent=0] ----