mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-01 06:49:42 +00:00
Fix yaml sample format
See gh-28671
This commit is contained in:
committed by
Stephane Nicoll
parent
ea064ce036
commit
7f1bd43c84
+7
-7
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user