tomcat不能打开当前项目

来源:百度知道 编辑:UC知道 时间:2024/09/25 00:41:13
http://localhost:8080/firstWeb/打不开,但http://localhost:8080/firstWeb/hello.jsp可以打开
怎么解决

没有设置欢迎页吧。默认是index.jsp,index.html,index.htm等等吧。
你的项目里有没有index.*存在?
如果没有,你试着把hello.jsp改成index.jsp,再试下
http://localhost:8080/firstWeb

错误贴出来。我想应该是你的servlet没有在加载,看web.xml里面配好了么