Browse Source

附件下载的文件夹路径配置到web.xml文件中。

zzy.zhiyuan.foxmail 8 years ago
parent
commit
5093c3fb11
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/main/java/com/ekexiu/portal/util/FileDownload.java

+ 1 - 2
src/main/java/com/ekexiu/portal/util/FileDownload.java

@ -64,12 +64,11 @@ public class FileDownload extends HttpServlet {
64 64

65 65
	public void doPost(HttpServletRequest request, HttpServletResponse response)
66 66
			throws ServletException, IOException {
67
		// TODO Auto-generated method stub
68 67
	}
69 68

70 69
	@Override
71 70
	public void init() throws ServletException {
72
		this.accessoryFolder = "D:/application/Workspaces/ekexiu.com.portal/src/main/webapp/accessory";
71
		this.accessoryFolder = this.getInitParameter("accessoryFolder");
73 72
		super.init();
74 73
	}
75 74