filePath = webRoot/application/template/1.xls
1 前台直接写路径 window.location = contextPath + filePath
2 后台下载的话 要获得文件的物理路径 path = request.getServletContext().getRealPath(filePath );
filePath = webRoot/application/template/1.xls
1 前台直接写路径 window.location = contextPath + filePath
2 后台下载的话 要获得文件的物理路径 path = request.getServletContext().getRealPath(filePath );