![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringMVC
Small_EP
Hh
展开
-
springMVC文件上传和下载
文件上传和下载 教室版 一、上传 Web端需要满足的条件 1.input里的type为file 2.提交的方式为post 3.form表单的属性必须有enctype且设置为multipart/form-data <form id="documentForm" name="documentForm" action="${pageContext.request.contextPath}/document/addDocument" enctype="multipart/form-data" metho原创 2021-04-09 19:01:04 · 66 阅读 · 0 评论 -
第一个SpringMVC,HelloSpringMVC
第一个SpringMVC-HelloSpringMVC 一、配置版 1.新建一个Model,添加Web支持 2.导入SpringMVC的依赖 3.配置web.xml,注册DispatcherServlet <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLS原创 2020-11-22 20:51:04 · 96 阅读 · 2 评论