public class App {
//存储配置属性的Map集合
public static Map<String, Object> conf = new HashMap<String, Object>();
public static void main(String[] args) throws IOException {
//从classpath下获取配置文件路径
URL url = App.class.getResource("/conf.yml")
Java读取yml配置文件到map中
最新推荐文章于 2024-05-08 01:22:07 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)