Skip to content

Commit

Permalink
eclipse#240 - further update based on feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Emily Jiang <[email protected]>
  • Loading branch information
Emily-Jiang committed May 26, 2020
1 parent feb5413 commit baaedff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* <p>
* Retrieve a number of related configuration properties to a property class.
* <pre>
* &#064;ConfigProperties("server")
* &#064;ConfigProperties(prefix="server")
* public class MyServer {
* public String host; //maps the property name server.host
* public int port; //maps to the property name server.port
Expand Down Expand Up @@ -66,5 +66,5 @@
* Specify the configuration property prefix
* @return the configuration property prefix
*/
String value() default "";
String prefix() default "";
}
2 changes: 1 addition & 1 deletion spec/src/main/asciidoc/configexamples.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ An alternative corresponding configuration property name can be specified using
[source, java]
----
@ConfigProperties("server")
@ConfigProperties(prefix="server")
public class ServerDetails {
public String host; // the value of the configuration property server.host
public int port; // the value of the configuration property server.port
Expand Down

0 comments on commit baaedff

Please sign in to comment.