且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

HTTP状态404尽管tomcat正在运行并且jsp可用,但请求的资源不可用错误.

更新时间:2022-03-18 23:17:08

在eclipse中设置tomcat并尝试运行简单的hello world应用程序时,您会遇到很多此错误.您可以按照以下给定步骤进行操作:

When you are setting up tomcat in eclipse and trying to run simple hello world application, you face a lot this error. You can follow below given steps:

  1. 右键单击项目属性,然后转到项目构面,选择Web应用程序模块,然后在下方选择蓝色配置链接,然后选择目录src/main/webapp.

  1. Right click on project properties, and go to project facet, select web application module, then select blue colour configuration link at the downside, and select content directory to src/main/webapp.

转到部署程序集,选择java build ..并添加maven依赖项.

Go to deployment assembly, select java build.. and add maven dependencies.