javaweb不调用前台的获取文件路径

javaweb没有request时获取文件保存路径

String classpath=new File(Thread.currentThread().getContextClassLoader().getResource("/").toString()).getParentFile().getParentFile().getPath().substring(5);
发布了42 篇原创文章 · 获赞 18 · 访问量 1万+

猜你喜欢

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