spring-boot/spring-boot-project/spring-boot-docs/src/main/asciidoc
Andy Wilkinson e26d5d95a8 Do not enable @ConfigurationPropertiesScan be default
In 2.2.0, @ConfigurationPropertiesScan was enabled by default.
Unfortunately, this had the unexpected side-effect of breaking
conditional enablement of a @ConfigurationProperties class via
@EnableConfigurationProperties if the @ConfigurationProperties class
was in a package covered by scanning.

This commit remove @ConfigurationPropertiesScan from
@SpringBootApplication so that it is no longer enabled by default.
2.1.x users who rely upon such conditional enablement of
@ConfigurationProperties classes can now upgrade to 2.2.x without
having to make any changes. Users who do not have such a need and are
in a position to use configuration properties scanning can now opt-in
by adding @ConfigurationPropertiesScan to their main application class
alongside @SpringBootApplication.

Closes gh-18674
2019-11-04 14:09:33 +00:00
..
appendix-application-properties.adoc Deprecate server.connection-timeout property 2019-10-16 13:48:48 +02:00
appendix-auto-configuration-classes.adoc Split appendices into multiple pages and include a ToC in each 2019-09-17 09:44:40 +01:00
appendix-configuration-metadata.adoc Merge branch '2.1.x' 2019-10-23 18:18:08 +02:00
appendix-dependency-versions.adoc Split appendices into multiple pages and include a ToC in each 2019-09-17 09:44:40 +01:00
appendix-executable-jar-format.adoc Add "Deploying to Containers" dedicated section 2019-10-31 10:50:12 +01:00
appendix-test-auto-configuration.adoc Split appendices into multiple pages and include a ToC in each 2019-09-17 09:44:40 +01:00
attributes.adoc Polish some external documentation links 2019-09-28 22:01:05 -07:00
build-tool-plugins.adoc Fix broken and redirected links in the reference documentation 2019-09-24 15:19:04 +01:00
deployment.adoc Add "Deploying to Containers" dedicated section 2019-10-31 10:50:12 +01:00
documentation-overview.adoc Fix broken and redirected links in the reference documentation 2019-09-24 15:19:04 +01:00
getting-started.adoc Mention Java 13 in system requirements docs 2019-09-28 21:59:50 -07:00
howto.adoc Polish 2019-10-02 22:15:05 -07:00
index-docinfo.xml Reformat documentation to one sentence per line 2019-08-29 14:58:48 -07:00
index.htmladoc Fix broken and redirected links in the reference documentation 2019-09-24 15:19:04 +01:00
index.htmlsingleadoc Split appendices into multiple pages and include a ToC in each 2019-09-17 09:44:40 +01:00
legal.adoc Update copyright year 2019-02-12 17:14:59 +01:00
production-ready-features.adoc Merge branch '2.1.x' 2019-10-24 10:48:48 +01:00
spring-boot-cli.adoc Split appendices into multiple pages and include a ToC in each 2019-09-17 09:44:40 +01:00
spring-boot-features.adoc Do not enable @ConfigurationPropertiesScan be default 2019-11-04 14:09:33 +00:00
spring-boot-reference.pdfadoc Add missing appendices to PDF reference documentation 2019-09-27 16:37:38 +02:00
using-spring-boot.adoc Do not enable @ConfigurationPropertiesScan be default 2019-11-04 14:09:33 +00:00