There is a new problem! The new Tomcat is newly installed, and the directory Source is created under Tomcat / conf / server.xml, add < / Context> OK, run http: // localhost: 8080 / source / index.jsp, success. Next, I wrote a servlet, put it in Source / Web-INF / CLASSES / Under, run http: // localhost: 8080 / source / servlet / helloWorld always report 404, add < Servlet> HelloWorld servlet-name> HelloWorld servlet-class> servlet> But, is still 404. Later Solution: Web.xml Add HelloWorld servlet-name> / sertern> servlet-mapping> This solved. I don't know why. Then, if all servlets, I want to add / servlet / * url-pattern> servlet-maping> I can once.