摘要:
Java开发中,经常需要在maven工程中读取src/main/resources下的配置文件: 思路如下: // 步骤1:返回类加载器 ClassLoader classLoader = Test.class.getClassLoader(); // 下面3行代码表示通过ClassLoader可以 阅读全文
posted @ 2018-06-02 17:00
andyzeng24
阅读(1866)
评论(0)
推荐(0)
浙公网安备 33010602011771号