且构网

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

通过IntelliJ IDEA 13部署的Tomcat war返回错误

更新时间:2023-01-11 08:53:44

确保已设置IntelliJ以部署上下文.xml文件启动tomcat时。您可以通过以下方式执行此操作

Make sure that you have setup IntelliJ to deploy the context.xml file when it starts tomcat. You can do this by


  1. 从文件菜单中选择项目结构

  1. Select "Project Structure" from the File menu

从那里,选择Facets选项。确保已配置Web构面。如果没有,请添加一个。

From there, select the "Facets" option. Make sure that you have a Web facet configured. If not, add one.

添加Web构面后,选择添加Application Server特定描述符...

Once the web facet is added, select "Add Application Server specific descriptor..."

从选项中选择Tomcat Context Descriptor,然后单击OK。

Select Tomcat Context Descriptor from the options and click OK.

默认情况下,IntelliJ将指向META- INF / context.xml的。如果这不是上下文文件的位置,则需要编辑文件的路径。

By default IntelliJ will point to META-INF/context.xml. If this is not the location of your context file, you will need to edit the Path to the file.