SpringBoot 读取配置文件

Spring把 key-value键值对封装成为PropertySource。PropertySource有许多实现类,如MapPropertySource和PropertiesPropertySource。

ConfigFileApplicationListener会监听SpringApplication启动时发生的事件,有postProcessEnvironment方法,

太复杂了….

Written on August 21, 2019