摘要:
文件上传的几个注意点: 方法请求必须为post请求。 form标签的encType属性值必须为multipart/form-data。 form表单中input标签type为file。 需要导入两个jar包。 <dependency> <groupId>commons-fileupload</gro 阅读全文
摘要:
getServletContext()方法是Servlet3.0添加的,所以需要引入3.0以上的jar包。 <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <versio 阅读全文