java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory

Open source software supply chain lighting plan, waiting for you>>>

many students will encounter the following mistakes

java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory

This error is very simple. It means that the class under fileUpload cannot be found. That is to say, the jar package of this foreign class is not added to the project. Some students will report an error even if they add the jar package, that is, commons-fileipload.jar and commons-io.jar. Students using other projects can download them from Apache’s official website, If you’re using the Maven project, that’s a good solution

We just need to add the dependency on the two packages in Maven’s POM. XML file, and let Maven download them automatically, which can avoid a lot of trouble

After joining this, you don’t have to worry about the bag. Try it. If you have any spring web problems, you can leave a message. I just can’t learn for a long time, but maybe I can help you

Similar Posts: