Merge branch '2.5.x'

Closes gh-28693
This commit is contained in:
Stephane Nicoll 2021-11-16 08:59:58 +01:00
commit 44b644c770
1 changed files with 7 additions and 7 deletions

View File

@ -786,13 +786,13 @@ This style of configuration works particularly well with the `SpringApplication`
[source,yaml,indent=0,subs="verbatim"] [source,yaml,indent=0,subs="verbatim"]
---- ----
my: my:
service: service:
remote-address: 192.168.1.1 remote-address: 192.168.1.1
security: security:
username: admin username: admin
roles: roles:
- USER - USER
- ADMIN - ADMIN
---- ----
To work with `@ConfigurationProperties` beans, you can inject them in the same way as any other bean, as shown in the following example: To work with `@ConfigurationProperties` beans, you can inject them in the same way as any other bean, as shown in the following example: