后台java获取编译文件路径
String path = this.getClass().getClassLoader().getResource("").getPath(); 这个是获取此文件编译后的路径地址
String root = ServletActionContext.getServletContext().getRealPath(""); 这个是获取整个工程所在的绝对路径
后台java获取编译文件路径
String path = this.getClass().getClassLoader().getResource("").getPath(); 这个是获取此文件编译后的路径地址
String root = ServletActionContext.getServletContext().getRealPath(""); 这个是获取整个工程所在的绝对路径