摘要:
@Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { //路径为目标文件,可以是文件、图片、压缩包等 File file = new File("E://commons-b... 阅读全文
摘要:
1.要实现上传图片在form表单必须加上 <form enctype="multipart/form-data"> 2.需要导的两个包 commons-fileupload-xx.jar commons-io-xx.jar 包链接:http://pan.baidu.com/s/1jIJ16KY 密码 阅读全文