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));
得到当前运行目录的几种方式
最新推荐文章于 2024-07-15 15:38:25 发布