看一下源码整体:
抓住主要点,Environment、PropertyResolver、PropertySource,其结构如下:
其中,
Environment:Interface representing the environment in which the current application is running.
PropertyResolver:Interface for resolving properties against any underlying source.
PropertySource:Abstract base class representing a source of name/value property pairs.
微信公众号: 架构师日常笔记 欢迎关注!