System.out.println(DBUtil.class.getClassLoader().getResource().getPath() + db.properties);
System.out.println(Thread.currentThread().getContextClassLoader().getResource().toString());
System.out.println(System.getProperty(user.dir));
得到当前运行目录的几种方式
最新推荐文章于 2025-05-19 13:49:08 发布