IntelliJ Web应用程序上下文路径 [英] IntelliJ web application context path

查看:809
本文介绍了IntelliJ Web应用程序上下文路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的IntelliJ网络应用程序中,我已将应用程序上下文设置为 myapp ,如下所示

In my IntelliJ web app, I have set the application context to myapp as shown below

当我设置应用程序上下文时,它似乎没有有任何影响。我期待将应用程序部署到myapp,或者至少生成的context.xml文件,以将我的应用程序的上下文设置为myapp。关于为什么这不起作用的任何想法(它是否与这是爆炸性的战争有关)?

When I set the Application context, it doesn't seem to have any effect. I was expecting the app to be deployed to myapp, or at least the generated context.xml file to set my app's context to myapp. Any thoughts on why this doesn't work (does it have something to do with the fact that this is an exploded war)?

推荐答案

在Tomcat启动脚本中覆盖 CATALINA_BASE 可能会破坏IDEA部署,因为它通过提供自定义 CATALINA_BASE 位置来修改配置放置以便Tomcat直接从指定为工件输出目录的位置加载工件。

Overriding CATALINA_BASE in Tomcat startup script may break IDEA deployment as it works by supplying custom CATALINA_BASE location where the modified configuration is placed so that Tomcat loads artifacts directly from the location specified as the artifact output directory.

请参阅相关问题:

  • How is Tomcat handled by IntelliJ IDEA 10.5

这篇关于IntelliJ Web应用程序上下文路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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