From 90ae14ec2187d1c94d19224a9130197fd06cc22e Mon Sep 17 00:00:00 2001 From: Jienan Duan Date: Wed, 18 Apr 2018 11:00:08 +0800 Subject: [PATCH 1/2] Add missing semicolon on sample code See gh-12895 --- .../spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc index 56e6625ed3..12abc3bb70 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc @@ -385,7 +385,7 @@ The `Application.java` file would declare the `main` method, along with the basi package com.example.myapplication; import org.springframework.boot.SpringApplication; - import org.springframework.boot.autoconfigure.SpringBootApplication + import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class Application { From 026d8bed5f5ed1f80ac661e62d74e53f052e1d69 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 18 Apr 2018 09:49:15 +0200 Subject: [PATCH 2/2] Fix additional missing semicolon on sample code Closes gh-12895 --- .../src/main/asciidoc/spring-boot-features.adoc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 77e5015391..680e959eca 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -291,9 +291,9 @@ and `non-option` arguments, as shown in the following example: [source,java,indent=0] ---- - import org.springframework.boot.* - import org.springframework.beans.factory.annotation.* - import org.springframework.stereotype.* + import org.springframework.boot.*; + import org.springframework.beans.factory.annotation.*; + import org.springframework.stereotype.*; @Component public class MyBean { @@ -327,8 +327,8 @@ discussed earlier. The following example shows a `CommandLineRunner` with a `run [source,java,indent=0] ---- - import org.springframework.boot.* - import org.springframework.stereotype.* + import org.springframework.boot.*; + import org.springframework.stereotype.*; @Component public class MyBean implements CommandLineRunner { @@ -433,8 +433,8 @@ property, as shown in the following example: [source,java,indent=0] ---- - import org.springframework.stereotype.* - import org.springframework.beans.factory.annotation.* + import org.springframework.stereotype.*; + import org.springframework.beans.factory.annotation.*; @Component public class MyBean { @@ -4595,7 +4595,7 @@ relevant annotation to its method, as shown in the following example: [source,java,indent=0] ---- - import org.springframework.cache.annotation.Cacheable + import org.springframework.cache.annotation.Cacheable; import org.springframework.stereotype.Component; @Component