如何部署到Intellij IDEA Tomcat文件夹? [英] How to Deploy to Intellij IDEA Tomcat Folder?

查看:469
本文介绍了如何部署到Intellij IDEA Tomcat文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Intellij IDEA 11.1.2终极版。我从Intellij IDEA运行Tomcat 6。在我的.war应用程序旁边,我有另一个包含静态HTML文件的文件夹。当我从命令行手动运行tomcat时,我将该文件夹放在Tomcat的webapp文件夹下,它会自动部署并运行。但是我想调试我的应用程序,所以我想从Intellij IDEA运行Tomcat。我认为Intellij IDEA将tomcat应用程序部署到.IntelliJIdea11 \ system \ tomcat文件夹中。当我从Intellij IDEA运行Tomcat时,我可以将包含静态文件的文件夹放在哪里?

I use Intellij IDEA 11.1.2 Ultimate Edition. I run Tomcat 6 from Intellij IDEA. Beside my .war application I have another folder that has static HTML files. When I run tomcat manually from command line I put that folder under Tomcat's webapp folder and it automatically deploys it and works. However I want to debug my application so I want to run Tomcat from Intellij IDEA. I think that Intellij IDEA deploys tomcat applications into .IntelliJIdea11\system\tomcat folder. Where I can put my folder that contains static files when I run Tomcat from Intellij IDEA?

(我在一个iframe中请求静态HTML文件夹的主页面我的HTML页面.war文件)

(I request the main page of static HTML file folder within an iframe at one of my HTML pages of .war file )

任何想法?

推荐答案

Tomcat Run配置有一个从服务器部署其他应用程序的选项(已存在于原始webapps文件夹中),如静态文件:

Tomcat Run configuration has an option to deploy other applications from the server (that already present in the original webapps folder), like your static files:

另一种选择是为静态内容创建第二个模块使用另一个工件并从IntelliJ IDEA部署两个工件。

Another option would be to create a second module for the static content with another artifact and deploy both artifacts from IntelliJ IDEA.

这篇关于如何部署到Intellij IDEA Tomcat文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆