这里使用的是idea的tomcat插件,能够正常访问servlet
这里使用的是maven的tomcat8-maven-plugin插件访问,报404
404是路径错误,idea里面运行访问URL,默认情况下没有项目名称,请检查一下。