简体   繁体   English

是否可以在IntelliJ IDEA中将多个war文件添加到部署中以进行运行/调试配置?

[英]Is it possible to add multiple war files to deployment for run/debug configuration in IntelliJ IDEA?

I try to debug my web app by IntelliJ IDEA Ultimate. 我尝试通过IntelliJ IDEA Ultimate调试Web应用程序。 My app have multiple WARs . 我的应用有多个WAR At Run/Debug Configuration I add new Tomcat Server. 在运行/调试配置中,我添加了新的Tomcat服务器。 At the Deployment tab I have: 在“部署”选项卡上,我有:

If I add more than one WAR artifact I get error Duplicate context path '/' . 如果添加多个WAR工件,则会出现错误复制上下文路径'/'

Question for this context is not answered here for a long time: Which application context set in IntelliJ IDEA for Tomcat? 关于此上下文的问题已经很长时间没有得到回答: 在IntelliJ IDEA中为Tomcat设置了哪个应用程序上下文?

So, let's clear: Is it possible to add multiple war files to deployment for run/debug configuration in IntelliJ IDEA? 因此,让我们清楚: 是否可以在IntelliJ IDEA中将多个war文件添加到部署中以进行运行/调试配置?

You Must add each WAR file in separate tomcat server that created in servers in Intellij IDEA and set a different port for each one. 您必须将每个WAR文件添加到在Intellij IDEA的服务器中创建的单独的tomcat服务器中,并为每个文件设置不同的端口。 After that run both of them. 之后,运行它们两个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM