File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
spring-boot-docs/src/main/asciidoc Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ rules of thumb:
47
47
{sc-spring-boot-autoconfigure}/web/ServerProperties.{sc-ext}[`ServerProperties`]
48
48
and read from there the available external configuration options. The
49
49
`@ConfigurationProperties` has a `name` attribute which acts as a prefix to external
50
- properties, thus `ServerProperties` has `name ="server"` and its configuration properties
50
+ properties, thus `ServerProperties` has `prefix ="server"` and its configuration properties
51
51
are `server.port`, `server.address` etc. In a running Actuator app look at the
52
52
`configprops` endpoint.
53
53
* Look for use of `RelaxedEnvironment` to pull configuration values explicitly out of the
Original file line number Diff line number Diff line change @@ -424,7 +424,7 @@ the configuration of your application. For example:
424
424
[source,java,indent=0]
425
425
----
426
426
@Component
427
- @ConfigurationProperties(name ="connection")
427
+ @ConfigurationProperties(prefix ="connection")
428
428
public class ConnectionSettings {
429
429
430
430
private String username;
@@ -512,7 +512,7 @@ annotations to your `@ConfigurationProperties` class:
512
512
[source,java,indent=0]
513
513
----
514
514
@Component
515
- @ConfigurationProperties(name ="connection")
515
+ @ConfigurationProperties(prefix ="connection")
516
516
public class ConnectionSettings {
517
517
518
518
@NotNull
You can’t perform that action at this time.
0 commit comments