gpt4 book ai didi

java - Java 编码的更改需要每次重新启动 Tomcat

转载 作者:行者123 更新时间:2023-12-03 02:29:49 25 4
gpt4 key购买 nike

每次,我都会在Eclipse下更改java类中的java编码。我点击run-as,它需要重新启动嵌入式Tomcat服务器才能使更改生效。如何在无需重新启动 Tomcat 服务器的情况下测试更改。因为这是非常耗时的,如果我每次更改一些代码都需要重新启动嵌入式Tomcat服务器。它将花费一分钟来测试一个小变化。

谢谢

最佳答案

您需要的是热部署:

Hot-deployable services are those which can be added to or removed from the running server. It is the ability to change ON-THE-FLY what’s currently deployed without redeploying it.

Hot deployment is VERY hot for development. The time savings realized when your developers can simply run their build and have the new code auto-deploy instead of build, shutdown, startup is massive.

好消息是 Eclipse 中有一个热部署。只需关注 Eclipse tutorial for this

关于java - Java 编码的更改需要每次重新启动 Tomcat,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50879380/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com