org.apache.commons.fileupload.FileItemFactory

Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileItemFactory
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory
在这里插入图片描述
不必惊慌!这种情况是为jar包少了
maven项目中加入依赖:

<dependency>
            <groupId>commons-fileupload</groupId>
            <artifactId>commons-fileupload</artifactId>
            <version>1.4</version>
        </dependency>
  <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.6</version>
  </dependency>

即可解决
非maven项目导入相关jar包,附上百度云盘下载地址:
百度云盘下载
提取码: oxxb
在这里插入图片描述

正文到此结束
评论插件初始化中...
Loading...