Browse Source

Merge pull request #12895 from jnduan:master

* pr/12895:
  Fix additional missing semicolon on sample code
  Add missing semicolon on sample code
pull/13066/head
Stephane Nicoll 8 years ago
parent
commit
4ef7ea324f
  1. 16
      spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
  2. 2
      spring-boot-project/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc

16
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: @@ -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 @@ -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: @@ -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: @@ -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

2
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 @@ -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 {

Loading…
Cancel
Save