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
4366d788
Commit
4366d788
authored
Apr 04, 2014
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix docos references to @ConfigurationProperties(prefix="...")
Fixes gh-629
parent
cc4ee653
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
howto.adoc
spring-boot-docs/src/main/asciidoc/howto.adoc
+1
-1
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+2
-2
No files found.
spring-boot-docs/src/main/asciidoc/howto.adoc
View file @
4366d788
...
...
@@ -47,7 +47,7 @@ rules of thumb:
{sc-spring-boot-autoconfigure}/web/ServerProperties.{sc-ext}[`ServerProperties`]
and read from there the available external configuration options. The
`@ConfigurationProperties` has a `name` attribute which acts as a prefix to external
properties, thus `ServerProperties` has `
name
="server"` and its configuration properties
properties, thus `ServerProperties` has `
prefix
="server"` and its configuration properties
are `server.port`, `server.address` etc. In a running Actuator app look at the
`configprops` endpoint.
* Look for use of `RelaxedEnvironment` to pull configuration values explicitly out of the
...
...
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
4366d788
...
...
@@ -424,7 +424,7 @@ the configuration of your application. For example:
[source,java,indent=0]
----
@Component
@ConfigurationProperties(
name
="connection")
@ConfigurationProperties(
prefix
="connection")
public class ConnectionSettings {
private String username;
...
...
@@ -512,7 +512,7 @@ annotations to your `@ConfigurationProperties` class:
[source,java,indent=0]
----
@Component
@ConfigurationProperties(
name
="connection")
@ConfigurationProperties(
prefix
="connection")
public class ConnectionSettings {
@NotNull
...
...
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