Skip to content

Commit

Permalink
Merge pull request #28671 from weixsun
Browse files Browse the repository at this point in the history
* pr/28671:
  Polish "Fix yaml sample format"
  Fix yaml sample format

Closes gh-28671
  • Loading branch information
snicoll committed Nov 16, 2021
2 parents ea064ce + 9ed7674 commit 48ebd1b
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 48ebd1b

Please sign in to comment.