Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
acf1ccaf
Commit
acf1ccaf
authored
Jun 03, 2014
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add notes for JNDI property values
Fixes gh-999
parent
740c132c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+9
-0
No files found.
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
acf1ccaf
...
@@ -205,6 +205,7 @@ sensible overriding of values, properties are considered in the the following or
...
@@ -205,6 +205,7 @@ sensible overriding of values, properties are considered in the the following or
. Command line arguments.
. Command line arguments.
. Java System properties (`System.getProperties()`).
. Java System properties (`System.getProperties()`).
. OS environment variables.
. OS environment variables.
. JNDI attributes from `java:comp/env`
. A `RandomValuePropertySource` that only has properties in `random.*`.
. A `RandomValuePropertySource` that only has properties in `random.*`.
. `@PropertySource` annotations on your `@Configuration` classes.
. `@PropertySource` annotations on your `@Configuration` classes.
. Application properties outside of your packaged jar (`application.properties`
. Application properties outside of your packaged jar (`application.properties`
...
@@ -307,6 +308,14 @@ can set up default values for your application in `application.properties` (or w
...
@@ -307,6 +308,14 @@ can set up default values for your application in `application.properties` (or w
other basename you choose with `spring.config.name`) and override it at runtime with a
other basename you choose with `spring.config.name`) and override it at runtime with a
different file, keeping the defaults.
different file, keeping the defaults.
> Note: if you use environment variables not system properties, most operating systems
disallow period-separated key names, but you can use underscores instead (e.g.
`SPRING_CONFIG_NAME` instead of `spring.config.name`).
> Note: If you are running in a container then JNDI properties (in `java:comp/env`) or
servlet context initialization parameters can be used instead of or as well as
environment variables or system properties.
[[boot-features-external-config-profile-specific-properties]]
[[boot-features-external-config-profile-specific-properties]]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment