A 404 error occurs when the browser accesses the servlet

The first servlet program written with the MyEclipse tool - Helloworld (refer to Section 4.1 of "Java Web Programming Practical Collection"), after creating the web project, start Tomcat through the MyEclipse development tool, and see the console window output server startup information as follows:


Then when I test this program by entering the URL in the browser address bar, I get a 404 error, as shown below:


I have searched a lot of methods on the Internet and can't solve the above problems. My development environment is MyEclipse 2014+Tomcat 8.0. Some new features that do not support jdk 1.8 appeared in this version of Myeclipse before. Later, I wondered if it was between development environments The problem of version mismatch, so I tried to replace Tomcat 8.0 with Tomcat 7.0, and the result was successfully accessed to the helloworld page:


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325906303&siteId=291194637