From 56f47e1a506d382bc48cd9ca2143958fa5b8d4f7 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Wed, 2 Aug 2017 23:48:20 +0900 Subject: [PATCH] Polish Closes gh-9938 --- .../boot/autoconfigure/BackgroundPreinitializer.java | 4 ++-- spring-boot-docs/src/main/asciidoc/deployment.adoc | 2 +- spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc | 2 +- .../ConcurrentReferenceCachingMetadataReaderFactory.java | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/BackgroundPreinitializer.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/BackgroundPreinitializer.java index cb7618d3ca..19f0070a5c 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/BackgroundPreinitializer.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/BackgroundPreinitializer.java @@ -46,14 +46,14 @@ import org.springframework.http.converter.support.AllEncompassingFormHttpMessage public class BackgroundPreinitializer implements ApplicationListener { - private static final AtomicBoolean preinitalizationStarted = new AtomicBoolean(false); + private static final AtomicBoolean preinitializationStarted = new AtomicBoolean(false); private static final CountDownLatch preinitializationComplete = new CountDownLatch(1); @Override public void onApplicationEvent(SpringApplicationEvent event) { if (event instanceof ApplicationEnvironmentPreparedEvent) { - if (preinitalizationStarted.compareAndSet(false, true)) { + if (preinitializationStarted.compareAndSet(false, true)) { performPreinitialization(); } } diff --git a/spring-boot-docs/src/main/asciidoc/deployment.adoc b/spring-boot-docs/src/main/asciidoc/deployment.adoc index 374d9deb83..0e4ad4de64 100644 --- a/spring-boot-docs/src/main/asciidoc/deployment.adoc +++ b/spring-boot-docs/src/main/asciidoc/deployment.adoc @@ -451,7 +451,7 @@ then use the https://cloud.google.com/sdk/downloads[Google Cloud SDK] to push yo Spring Boot app into that slot from the command line or CI build. App Engine needs you to create an `app.yaml` file to describe the resources your app -requires. Normally you put this in `src/min/appengine`, and it looks something like this: +requires. Normally you put this in `src/main/appengine`, and it looks something like this: [source,yaml,indent=0] ---- diff --git a/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc b/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc index 5560228514..962685ffce 100644 --- a/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc +++ b/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc @@ -882,7 +882,7 @@ however it doesn't support as many frameworks and it isn't commercially supporte ==== Excluding resources Certain resources don't necessarily need to trigger a restart when they are changed. For example, Thymeleaf templates can just be edited in-place. By default changing resources -in `/META-INF/maven`, `/META-INF/resources` ,`/resources` ,`/static` ,`/public` or +in `/META-INF/maven`, `/META-INF/resources`, `/resources`, `/static`, `/public` or `/templates` will not trigger a restart but will trigger a <>. If you want to customize these exclusions you can use the `spring.devtools.restart.exclude` property. For example, to exclude only diff --git a/spring-boot/src/main/java/org/springframework/boot/type/classreading/ConcurrentReferenceCachingMetadataReaderFactory.java b/spring-boot/src/main/java/org/springframework/boot/type/classreading/ConcurrentReferenceCachingMetadataReaderFactory.java index 6bcde54ea1..7d08d35cc5 100644 --- a/spring-boot/src/main/java/org/springframework/boot/type/classreading/ConcurrentReferenceCachingMetadataReaderFactory.java +++ b/spring-boot/src/main/java/org/springframework/boot/type/classreading/ConcurrentReferenceCachingMetadataReaderFactory.java @@ -29,7 +29,7 @@ import org.springframework.util.ConcurrentReferenceHashMap; /** * Caching implementation of the {@link MetadataReaderFactory} interface backed by a - * {@link ConcurrentReferenceHashMap} , caching {@link MetadataReader} per Spring + * {@link ConcurrentReferenceHashMap}, caching {@link MetadataReader} per Spring * {@link Resource} handle (i.e. per ".class" file). * * @author Phillip Webb