Harmonize ConfigurationProperties code samples
Rename the SomeProperties class so that it is consistent with other examples given within the Type-safe Configuration Properties. This ensures that readers can intuitively draw the conclusion that the MyProperties class is annotated with ConfigurationProperties. See gh-32644
This commit is contained in:
parent
954e874d72
commit
c5a1944267
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
package org.springframework.boot.docs.features.externalconfig.typesafeconfigurationproperties.usingannotatedtypes;
|
package org.springframework.boot.docs.features.externalconfig.typesafeconfigurationproperties.usingannotatedtypes;
|
||||||
|
|
||||||
class SomeProperties {
|
class MyProperties {
|
||||||
|
|
||||||
Object getRemoteAddress() {
|
Object getRemoteAddress() {
|
||||||
return null;
|
return null;
|
||||||
|
|
@ -21,9 +21,9 @@ import org.springframework.stereotype.Service;
|
||||||
@Service
|
@Service
|
||||||
public class MyService {
|
public class MyService {
|
||||||
|
|
||||||
private final SomeProperties properties;
|
private final MyProperties properties;
|
||||||
|
|
||||||
public MyService(SomeProperties properties) {
|
public MyService(MyProperties properties) {
|
||||||
this.properties = properties;
|
this.properties = properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue