Java获取当前类路径

this.getClass().getClassLoader().getResource("/").getPath();

发布了42 篇原创文章 · 获赞 18 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_39361915/article/details/99870608