spring_reference/X. Appendices/B.1.3. Repeated meta-data i...

4 lines
356 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

### B.1.3. 可重复的元数据节点
在同一个元数据文件中出现多次相同名称的"property"和"group"对象是可以接受的。例如Spring Boot将`spring.datasource`属性绑定到HikariTomcat和DBCP类并且每个都潜在的提供了重复的属性名。这些元数据的消费者需要确保他们支持这样的场景。