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:
- Using Maven helper to resolve Maven plug-in conflicts
- [Solved] Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central
- Maven Error: Failed to read artifact descriptor for xxx:jar and missing artifact maven dependency
- Tomcat10 Error: java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
- SLF4J: Detected both log4j-over-slf4j.jar AND bound slf4j-log4j12.jar on the class path
- The difference between web app libraries and referenced libraries in eclipse project
- Spring cloud multi module packaging errors [How to Solve]
- Error in the first line of pom.xml [How to Solve]
- New Maven project — pom.xml error [How to Solve]
- Maven: idea cannot download the source code Issue [How to Solve]