将编译好的class放到tomcat\webapps\examples\web-inf\classes下
重起tomcat
http://localhost:8080/examples/servlet/YourServlet