You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/profiles.adoc
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -31,8 +31,8 @@ The name of the default profile is `default` and it can be tuned using the confi
31
31
default: "none"
32
32
----
33
33
34
-
`spring.profiles.active` and `spring.profiles.default` can only be used in non-profilespecific documents.
35
-
This means they cannot be included in <<features#features.external-config.files.profile-specific,profile specific files>> or <<features#features.external-config.files.activation-properties,documents activated>> by `spring.config.activate.on-profile`.
34
+
`spring.profiles.active` and `spring.profiles.default` can only be used in non-profile-specific documents.
35
+
This means they cannot be included in xref:features/external-config.adoc#features.external-config.files.profile-specific[profile specific files] or xref:features/external-config.adoc#features.external-config.files.activation-properties[documents activated] by `spring.config.activate.on-profile`.
36
36
37
37
For example, the second document configuration is invalid:
38
38
@@ -75,8 +75,8 @@ For example, when an application with the following properties is run, the commo
75
75
- "local"
76
76
----
77
77
78
-
WARNING: Similar to `spring.profiles.active`, `spring.profiles.include` can only be used in non-profilespecific documents.
79
-
This means it cannot be included in <<features#features.external-config.files.profile-specific,profile specific files>> or <<features#features.external-config.files.activation-properties,documents activated>> by `spring.config.activate.on-profile`.
78
+
WARNING: Similar to `spring.profiles.active`, `spring.profiles.include` can only be used in non-profile-specific documents.
79
+
This means it cannot be included in xref:features/external-config.adoc#features.external-config.files.profile-specific[profile specific files] or xref:features/external-config.adoc#features.external-config.files.activation-properties[documents activated] by `spring.config.activate.on-profile`.
80
80
81
81
Profile groups, which are described in the <<features#features.profiles.groups,next section>> can also be used to add active profiles if a given profile is active.
82
82
@@ -104,6 +104,8 @@ For example, we can create a `production` group that consists of our `proddb` an
104
104
105
105
Our application can now be started using `--spring.profiles.active=production` to activate the `production`, `proddb` and `prodmq` profiles in one hit.
106
106
107
+
WARNING: Similar to `spring.profiles.active` and `spring.profiles.include`, `spring.profiles.group` can only be used in non-profile-specific documents.
108
+
This means it cannot be included in xref:features/external-config.adoc#features.external-config.files.profile-specific[profile specific files] or xref:features/external-config.adoc#features.external-config.files.activation-properties[documents activated] by `spring.config.activate.on-profile`.
0 commit comments