org.apache.commons.fileupload.FileItemFactory 朱雀 2022-03-21 20:44 321阅读 0赞 **Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileItemFactory** **Caused by: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory** ![在这里插入图片描述][watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQxMzg5MzU0_size_16_color_FFFFFF_t_70] 不必惊慌!这种情况是为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包:博客下载要积分,附上百度云盘下载地址: [百度云盘下载][Link 1] 提取码: oxxb ![在这里插入图片描述][20190128000859145.png] [watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQxMzg5MzU0_size_16_color_FFFFFF_t_70]: /images/20220322/4bfdbaae8d804621b62668d312807ce5.png [Link 1]: https://pan.baidu.com/s/1Jq83gKv2rpVGkUmYvtLYIw [20190128000859145.png]: /images/20220322/129560ea1f5c4c57a646e800186925ed.png
还没有评论,来说两句吧...