IDEA修改tomcat的server.xml配置方法
程序员文章站
2022-05-29 16:34:07
...
两种方法
懒得翻译,都是摘抄的
第一种
来自于
https://intellij-support.jetbrains.com/hc/en-us/community/posts/206329989-How-to-configure-additional-context-information-in-Tomcat
To do this, you have to click on Run > Edit Configurations to open the Run/Debug Configurations Dialog. Then open the Tomcat Server tab. Next click on the Startup/Connection sub tab. Select the Run entry. For the Startup script entry unselect "use default". Now click on the Edit button next to the box you just unselected. This opens the Configure VM and Program Parameters dialog. For "Program Parameters" you hav per default the command run. Add -config ]]>, On my system the entry would be:
run -config C:/usr/local/tomcat/apache-tomcat-5.5.15/conf/server.xml
That made IntelliJ using the server.xml in the Tomcat installation which now give me the desired Context configuration.
第二种
To get around this big mess and just use your Tomcat as if you ran it outside of IDEA you simply add a CATALINA_BASE environment variable to the configuration of Tomcat (within IDEA) pointing to your Tomcat directory:
懒得翻译,都是摘抄的
第一种
来自于
https://intellij-support.jetbrains.com/hc/en-us/community/posts/206329989-How-to-configure-additional-context-information-in-Tomcat
To do this, you have to click on Run > Edit Configurations to open the Run/Debug Configurations Dialog. Then open the Tomcat Server tab. Next click on the Startup/Connection sub tab. Select the Run entry. For the Startup script entry unselect "use default". Now click on the Edit button next to the box you just unselected. This opens the Configure VM and Program Parameters dialog. For "Program Parameters" you hav per default the command run. Add -config ]]>, On my system the entry would be:
run -config C:/usr/local/tomcat/apache-tomcat-5.5.15/conf/server.xml
That made IntelliJ using the server.xml in the Tomcat installation which now give me the desired Context configuration.
第二种
To get around this big mess and just use your Tomcat as if you ran it outside of IDEA you simply add a CATALINA_BASE environment variable to the configuration of Tomcat (within IDEA) pointing to your Tomcat directory:
推荐阅读
-
Spring Boot 配置 IDEA和DevTools 热部署的方法
-
idea如何修改快捷键为Eclipse风格?IntelliJ IDEA设置快捷键及快捷键风格的方法
-
tomcat优化配置的方法(教你tomcat怎么优化配置)
-
Linux和Windows中tomcat修改内存大小的方法
-
tomcat优化配置的方法(教你tomcat怎么优化配置)
-
apache虚拟机配置步骤和修改访问端口的方法(虚拟机端口映射)
-
修改Nodejs内置的npm默认配置路径方法
-
如何在LINUX系统下修改debian wheezy默认配置的方法
-
MySQL配置文件无法修改的解决方法(Win10)
-
Springboot在IDEA热部署的配置方法