更改IntelliJ 12中的默认Web应用程序目录 [英] Change default web application directory in IntelliJ 12
问题描述
从输出中我得到;
信息:部署Web应用程序目录C:\ Program Files \ Apache Software Foundation \ Tomcat 7.0 \ webapps \ manager
INFO: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\manager
我需要部署的是"root"而不是"manager".在研究了该主题并浏览了IntelliJ的教程之后,我似乎无法弄清楚如何完成此任务.这是我第一次尝试使用网络应用,因此,如果我忽略了一些琐碎的事情,我深表歉意.
What I need it to deploy is "root", and not "manager". After researching the topic and looking through IntelliJ's tutorials, I can't seem to figure out how to accomplish this. This is my first attempt at a web app, so I apologize if I am overlooking something trivial.
我还将Tomcat 7用作应用服务器.
I am also using Tomcat 7 as my application server.
推荐答案
此消息与工件部署无关,请参见此答案.
This message has nothing to do with your artifact deployment, see this answer.
直接从设置为输出目录的目录中部署Web应用程序的神器.
您可以将工件输出更改为TOMCAT\webapps\ROOT
,但通常不需要.
You can change artifact output to be TOMCAT\webapps\ROOT
, but normally it's not needed.
更新:
检查您的Run
配置Deployment
选项卡,是否指定了要部署的工件及其上下文?上下文是否设置为"/"(ROOT)?您可能还需要禁用部署已在此Tomcat实例中配置的应用程序,以下是相关设置:
Check your Run
configuration Deployment
tab, did you specify the artifact to deploy and its context? Is the context set to "/" (ROOT)? You may also need to disable deploying applications already configured in this Tomcat instance, here are the relevant settings:
这篇关于更改IntelliJ 12中的默认Web应用程序目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!