摘要: 0.说在前面 基于SpringMVC项目 1.导入jar包commons-io-x.x.jar和commons-fileupload-x.x.jar 我这里使用的是commons-io-2.4.jar和commons-fileupload-1.4.jar 2.新建fileupload.jsp和sho 阅读全文
posted @ 2020-04-07 16:43 安徒生敲代码 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 0.说在前面 基于SpringMVC--注解项目 1.新建encoding.jsp和success.jsp页面 encoding.jsp <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF 阅读全文
posted @ 2020-04-07 15:49 安徒生敲代码 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 0.说在前面 基于SpringMVC项目构建中的项目 1.修改springmvc.xml,注解的方式引入处理器映射器和处理器适配器 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/ 阅读全文
posted @ 2020-04-07 11:31 安徒生敲代码 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1.Eclipse新建Dynamic Web Project项目 2.在WebContent下的WEB-INF下的lib文件夹中导入以下jar包,并Build Path 3.打开WebContent下的WEB-INF下的web.xml文件,配置SpringMVC的前端控制器 <?xml versio 阅读全文
posted @ 2020-04-07 10:47 安徒生敲代码 阅读(237) 评论(0) 推荐(0) 编辑