Having to restart tomcat whenever you make a change

后端 未结 8 963
名媛妹妹
名媛妹妹 2020-12-04 18:46

Is there a way around having to restart tomcat every time a small change is made in java code?

8条回答
  •  粉色の甜心
    2020-12-04 18:48

    I've been using the Spring Loaded JVM agent to avoid restarting Tomcat or reloading the application (which can take a while for Spring web apps). I configure my Tomcat server in Eclipse along with "Automatically publish when resources change" to get changes to take effect nearly immediately.

    If you use Eclipse with Tomcat integrated (WTP), you can see the steps I took here: https://stackoverflow.com/a/37064672/1034436

提交回复
热议问题