Document support for comma-separated list of names in <springProfile>

See gh-3493
This commit is contained in:
Andy Wilkinson 2015-07-16 17:34:11 +01:00
parent 125de0211b
commit 9f9f21207f
1 changed files with 6 additions and 1 deletions

View File

@ -1074,7 +1074,8 @@ it's loaded too early. You need to either use `logback-spring.xml` or define a
The `<springProfile>` tag allows you to optionally include or exclude sections of
configuration based on the active Spring profiles. Profile sections are supported anywhere
within the `<configuration>` element. Use the `name` attribute to specify which profile
accepts the configuration.
accepts the configuration. Multiple profiles can be specified using a comma-separated
list.
[source,xml,indent=0]
----
@ -1082,6 +1083,10 @@ accepts the configuration.
<!-- configuration to be enabled when the "staging" profile is active -->
</springProfile>
<springProfile name="dev, staging">
<!-- configuration to be enabled when the "dev" or "staging" profiles are active -->
</springProfile>
<springProfile name="!production">
<!-- configuration to be enabled when the "production" profile is not active -->
</springProfile>