IntelliJ可以在同一个tomcat实例上调试两个war文件吗? [英] Can IntelliJ debug two war files on the same instance of tomcat?

查看:137
本文介绍了IntelliJ可以在同一个tomcat实例上调试两个war文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个Web应用程序,每个都生成一个war文件。有时我需要同时运行和调试它们。我今天完成此任务的方法是在端口8080上运行Tomcat 6上的项目A,在端口8181上运行tomcat 7上的项目B.

I have two web applications that each produce a war file. Sometimes I need to run and debug both of them at the same time. The way I accomplish this today is to run Project A on tomcat 6 at port 8080, and Project B on tomcat 7 at port 8181.

我有IntelliJ设置以便tomcat指向目标目录中的爆炸war文件。两个项目都使用Maven(即基于pom)。 有没有办法从tomcat 7同时运行/调试它们?

I have IntelliJ setup so that tomcat points to the exploded war file in the target directory. Both projects use Maven (i.e. pom based). Is there a way to run/debug both of them at the same time from tomcat 7?

推荐答案

在IDEA Tomcat运行/调试配置部署选项卡中,您可以配置要在同一Tomcat上部署的多个工件实例。

In the IDEA Tomcat Run/Debug Configuration, Deployment tab you can configure multiple artifacts to be deployed on the same Tomcat instance.

如果要将它们部署到不同的Tomcats,请创建2个Tomcat运行/调试配置并改为使用它们。您可以同时运行多个配置。

If you want to deploy them to different Tomcats, create 2 Tomcat Run/Debug configurations and use them instead. You can run multiple configurations at the same time.

这篇关于IntelliJ可以在同一个tomcat实例上调试两个war文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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