Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
org.springframework.core.env.Environment 似乎有一个 getProperty 方法,但没有迭代所有属性。这是故意的吗?
是的,这是故意的。
PropertyResolver 接口和 PropertySource 类在这方面受到有意限制,以便它们可以得到可能无法迭代键的提供者的支持。