Skip to content

Commit

Permalink
Fix yaml sample format
Browse files Browse the repository at this point in the history
  • Loading branch information
weixsun authored and snicoll committed Nov 16, 2021
1 parent ea064ce commit 7f1bd43
Showing 1 changed file with 7 additions and 7 deletions.
Expand Up @@ -784,13 +784,13 @@ This style of configuration works particularly well with the `SpringApplication`
[source,yaml,indent=0,subs="verbatim"]
----
my:
service:
remote-address: 192.168.1.1
security:
username: admin
roles:
- USER
- ADMIN
service:
remote-address: "192.168.1.1"
security:
username: "admin"
roles:
- USER
- ADMIN
----

To work with `@ConfigurationProperties` beans, you can inject them in the same way as any other bean, as shown in the following example:
Expand Down

0 comments on commit 7f1bd43

Please sign in to comment.