Browse Source

Merge pull request #28671 from weixsun

* pr/28671:
  Polish "Fix yaml sample format"
  Fix yaml sample format

Closes gh-28671
pull/28778/head
Stephane Nicoll 4 years ago
parent
commit
48ebd1bb4d
  1. 14
      spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/external-config.adoc

14
spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/external-config.adoc

@ -784,13 +784,13 @@ This style of configuration works particularly well with the `SpringApplication` @@ -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:

Loading…
Cancel
Save