更新时间: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:
右键单击项目属性,然后转到项目构面,选择Web应用程序模块,然后在下方选择蓝色配置链接,然后选择目录src/main/webapp.
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.