java web项目中 获取resource路径下的文件路径

java web项目中 获取resource路径下的文件路径   public GetResource{html   String path = GetResource.class.getClassLoader().getResource("xx/xx.txt").getPath();java }web   ----------扩展tomcat 一 相对路径的得到    说明:相对路径(即不写明时
相关文章
相关标签/搜索