就简单的几部: 1、引入jar包: 2、jsp或html页面 3、配置applicationContext.xml(注意:id的名字必须是:multipartResolver) 4、代码逻辑 就这么简单。