摘要: 1、基于ClassLoder读取配置文件 注意:该方式只能读取类路径下的配置文件,有局限但是如果配置文件在类路径下比较方便。 Properties properties = new Properties(); //使用ClassLoader加载properties配置文件生成对应的输入流 Input 阅读全文
posted @ 2021-01-25 15:44 ASKANDANSWERS 阅读(109) 评论(0) 推荐(0) 编辑