Springboot 获取.yml中自定义参数 根据不同环境获取不同参数,放在配置文件便于更改!testRY.getAppId();testRY.getHotline();Springboot 获取.yml中自定义参数 方法直接调用赋值即可。 歆萌 2019-12-09 18:21:07