SpringBoot中EnvironmentAware作为配置文件读取使用 在类中通过实现该接口,重写setEnvironment方法 该方法在springBoot启动时加载到变量中 执行结果: 测试数据