Problems encountered while working on the project. I always thought it was a problem with the compilation of the project. According to the method on the Internet, I made changes (myeclipse cannot be compiled), and then it still cannot be tested.
Solution:
After myeclipse compiles the maven project, the .class file is changed to ../target/classes under ../WEB-INF/classes, and the test is normal.