Skip to content

Commit 7f1bd43

Browse files
weixsunsnicoll
authored andcommitted
Fix yaml sample format
See gh-28671
1 parent ea064ce commit 7f1bd43

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -784,13 +784,13 @@ This style of configuration works particularly well with the `SpringApplication`
784784
[source,yaml,indent=0,subs="verbatim"]
785785
----
786786
my:
787-
service:
788-
remote-address: 192.168.1.1
789-
security:
790-
username: admin
791-
roles:
792-
- USER
793-
- ADMIN
787+
service:
788+
remote-address: "192.168.1.1"
789+
security:
790+
username: "admin"
791+
roles:
792+
- USER
793+
- ADMIN
794794
----
795795

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

0 commit comments

Comments
 (0)