Deploying to a Tomcat server which is already running outside of IntelliJ IDEA

大憨熊 提交于 2020-01-11 08:37:14

问题


I have installed Tomcat server on my PC and I have added it as a service in Windows. So now it starts each time I boot my computer. Now, in IntelliJ I have configured an application server, and that is my Tomcat server, however when trying to "run" the application it says that the port is already in use....and it is ofcourse since Tomcat is started on boot. Is it possible that IntelliJ deploys to the already running Tomcat server instead of trying to start again?


回答1:


If you want to deploy to Tomcat started outside of IDEA, use the Tomcat Remote Run/Debug configuration type.

The difference of the Remote configuration is that it doesn't start the server, ensure you create Remote configuration, not Local:

It's possible to update application without restarting the server, refer to the Updating Applications on Application Servers help section.




回答2:


You can use Jrebel plugin. It will be helpful to update your application without restarting your server.



来源:https://stackoverflow.com/questions/10461717/deploying-to-a-tomcat-server-which-is-already-running-outside-of-intellij-idea

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!