Skip to content

Commit 6b27327

Browse files
committed
Merge branch '2.1.x'
2 parents 2b607ed + 4eb73e0 commit 6b27327

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2216,7 +2216,7 @@ If you need to add or customize converters, you can use Spring Boot's
22162216

22172217
[source,java,indent=0]
22182218
----
2219-
import org.springframework.boot.autoconfigure.web.HttpMessageConverters;
2219+
import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
22202220
import org.springframework.context.annotation.*;
22212221
import org.springframework.http.converter.*;
22222222

spring-boot-project/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -763,10 +763,13 @@ listings for Maven and Gradle:
763763

764764
NOTE: Developer tools are automatically disabled when running a fully packaged
765765
application. If your application is launched from `java -jar` or if it is started from a
766-
special classloader, then it is considered a "`production application`". Flagging the
767-
dependency as optional in Maven or using a custom`developmentOnly` configuration in
768-
Gradle (as shown above) is a best practice that prevents devtools from being transitively
769-
applied to other modules that use your project.
766+
special classloader, then it is considered a "`production application`". If that does not
767+
apply to you (i.e. if you run your application from a container), consider excluding
768+
devtools or set the `-Dspring.devtools.restart.enabled=false` system property.
769+
770+
TIP: Flagging the dependency as optional in Maven or using a custom`developmentOnly`
771+
configuration in Gradle (as shown above) is a best practice that prevents devtools from
772+
being transitively applied to other modules that use your project.
770773

771774
TIP: Repackaged archives do not contain devtools by default. If you want to use a
772775
<<using-boot-devtools-remote,certain remote devtools feature>>, you need to disable the

0 commit comments

Comments
 (0)