Update 23.6.2. Exposing YAML as properties in the Spring Environment.md
parent
44ff559d70
commit
ae37aadbd3
|
@ -0,0 +1,3 @@
|
|||
### 23.6.2. 在Spring环境中使用YAML暴露属性
|
||||
|
||||
YamlPropertySourceLoader类能够用于将YAML作为一个PropertySource导出到Sprig Environment。这允许你使用熟悉的@Value注解和占位符语法访问YAML属性。
|
Loading…
Reference in New Issue