配置类通过PropertySource注解加载自定义yml配置文件
首先定义一个YamlPropertySourceFactory,参考https://mdeinum.github.io/2018-07-04-PropertySource-with-yaml-files/import java.io.FileNotFoundException;import java.io.IOException;import java.util.Properties...
原创
2019-11-19 17:47:50 ·
1243 阅读 ·
0 评论