[Solved] Servlet error: org/apache/ibatis/io/Resources could not be found

At the same time, the front end, axios reported an error the server responded with a status of 500

Check the wrong idea

1. It is guessed that the axios version is wrong, but after the version is changed, the error remains

2. Click on the network and find that the servlet is abnormal, the abnormality is

java.lang.NoClassDefFoundError: org/apache/ibatis/io/Resources

3. Locate the circled code line, check the code, and write a test method, and find that the code is correct

4. The problem can only be: this package is not available, this package must be read when running

5. Check the output directory of the build and find that lib underground does not specify the output result (this is the root cause)

6. So right-click on the lib, and click to add the library path according to the steps above the picture, that is, “Add Copy Of”, “library Files”

7. Select the jar package library of the project, that’s it!

8. Restart tomcat, re-run the webpage, the problem is solved!

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *