From 0bf359f4a22eb0791d6628a6e067baaf945375ee Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Fri, 20 Dec 2019 12:19:53 +0900 Subject: [PATCH] Polish See gh-19409 --- .../spring-boot-docs/src/main/asciidoc/deployment.adoc | 4 ++-- .../spring-boot-docs/src/main/asciidoc/howto.adoc | 2 +- .../src/main/asciidoc/spring-boot-features.adoc | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/deployment.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/deployment.adoc index 4e02fa4bb26..b62dccbe397 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/deployment.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/deployment.adoc @@ -54,7 +54,7 @@ For example, using a `Dockerfile` you could express it in this form: ENTRYPOINT ["java","-cp","app:app/lib/*","com.example.MyApplication"] ---- -Assuming the above `Dockerfile` is the current directory, your docker image can be built with `docker build .`, or optionally specifying the path to your application jar, as shown in the following example: +Assuming the above `Dockerfile` is in the current directory, your docker image can be built with `docker build .`, or optionally specifying the path to your application jar, as shown in the following example: [indent=0] ---- @@ -455,7 +455,7 @@ This makes it very easy to install and manage Spring Boot applications in common CAUTION: Fully executable jars work by embedding an extra script at the front of the file. Currently, some tools do not accept this format, so you may not always be able to use this technique. For example, `jar -xf` may silently fail to extract a jar or war that has been made fully executable. -It is recommended that you make your jar or war fully executable only if you intend to execute it directly, rather than running it with `java -jar`or deploying it to a servlet container. +It is recommended that you make your jar or war fully executable only if you intend to execute it directly, rather than running it with `java -jar` or deploying it to a servlet container. CAUTION: A zip64-format jar file cannot be made fully executable. Attempting to do so will result in a jar file that is reported as corrupt when executed directly or with `java -jar`. diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc index 2a2e13abc72..f419c2b167f 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -1636,7 +1636,7 @@ Spring Data can create implementations of `@Repository` interfaces of various fl Spring Boot handles all of that for you, as long as those `@Repositories` are included in the same package (or a sub-package) of your `@EnableAutoConfiguration` class. For many applications, all you need is to put the right Spring Data dependencies on your classpath. -There is a `spring-boot-starter-data-jpa` for JPA, spring-boot-starter-data-mongodb` for Mongodb, etc. +There is a `spring-boot-starter-data-jpa` for JPA, `spring-boot-starter-data-mongodb` for Mongodb, etc. To get started, create some repository interfaces to handle your `@Entity` objects. Spring Boot tries to guess the location of your `@Repository` definitions, based on the `@EnableAutoConfiguration` it finds. 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 2c1aa575ddc..af0bcf1b447 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 @@ -2626,7 +2626,7 @@ For browser clients, there is a "`whitelabel`" error handler that renders the sa You can also provide your own HTML templates to display errors (see the <>). The first step to customizing this feature often involves using the existing mechanism but replacing or augmenting the error contents. -For that, you can add a bean of type`ErrorAttributes`. +For that, you can add a bean of type `ErrorAttributes`. To change the error handling behavior, you can implement `ErrorWebExceptionHandler` and register a bean definition of that type. Because a `WebExceptionHandler` is quite low-level, Spring Boot also provides a convenient `AbstractErrorWebExceptionHandler` to let you handle errors in a WebFlux functional way, as shown in the following example: @@ -5074,7 +5074,7 @@ For example, you might declare the following section in `application.properties` spring.rabbitmq.password=secret ---- -Alternatively, you could configure the same connection using the `addresses` attributes: +Alternatively, you could configure the same connection using the `addresses` attribute: [source,properties,indent=0] ----