Skip to content

Commit 0463350

Browse files
committed
Document that spring(Profile|Property) cannot be used with scan=true
Closes gh-5611
1 parent 6932018 commit 0463350

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,6 +1570,16 @@ NOTE: You cannot use extensions in the standard `logback.xml` configuration file
15701570
it's loaded too early. You need to either use `logback-spring.xml` or define a
15711571
`logging.config` property.
15721572

1573+
WARNING: The extensions cannot be used with Logback's
1574+
http://logback.qos.ch/manual/configuration.html#autoScan[configuration scanning]. If you
1575+
attempt to do so, making changes to the configuration file will result in an error similar
1576+
to once of the following being logged:
1577+
1578+
----
1579+
ERROR in ch.qos.logback.core.joran.spi.Interpreter@4:71 - no applicable action for [springProperty], current ElementPath is [[configuration][springProperty]]
1580+
ERROR in ch.qos.logback.core.joran.spi.Interpreter@4:71 - no applicable action for [springProfile], current ElementPath is [[configuration][springProfile]]
1581+
----
1582+
15731583

15741584

15751585
==== Profile-specific configuration

0 commit comments

Comments
 (0)