Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/multithreading/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsp 为什么每次编辑Servlet类时都需要重新启动Tomcat_Jsp_Tomcat_Servlets_Restart - Fatal编程技术网

Jsp 为什么每次编辑Servlet类时都需要重新启动Tomcat

Jsp 为什么每次编辑Servlet类时都需要重新启动Tomcat,jsp,tomcat,servlets,restart,Jsp,Tomcat,Servlets,Restart,在修改用户定义的Servlet类时,我们需要重新启动ApacheTomcat服务器。 但无论何时修改JSP文件,都不需要重新启动 请告诉我这背后的确切原因 提前感谢。这是因为Tomcat不支持热代码替换。如果您是在像Eclipse这样的IDE中开发的,那么您可以使用插件来实现这一点。截至目前(2019年5月),JRebel仍然没有免费的替代方案(主要是因为这真的很重要) 但是,有些服务器支持即时热代码替换,例如和。对于它们,在编辑现有方法时不需要JRebel。这些服务器能够通过JVM热交换功能执

在修改用户定义的Servlet类时,我们需要重新启动ApacheTomcat服务器。 但无论何时修改JSP文件,都不需要重新启动

请告诉我这背后的确切原因


提前感谢。

这是因为Tomcat不支持热代码替换。如果您是在像Eclipse这样的IDE中开发的,那么您可以使用插件来实现这一点。截至目前(2019年5月),JRebel仍然没有免费的替代方案(主要是因为这真的很重要)


但是,有些服务器支持即时热代码替换,例如和。对于它们,在编辑现有方法时不需要JRebel。这些服务器能够通过JVM热交换功能执行热代码替换。只有当您想添加新的类/方法并让它们立即部署时,才需要JRebel。

这是因为Tomcat不支持热代码替换。如果您是在像Eclipse这样的IDE中开发的,那么您可以使用插件来实现这一点。截至目前(2019年5月),JRebel仍然没有免费的替代方案(主要是因为这真的很重要)


但是,有些服务器支持即时热代码替换,例如和。对于它们,在编辑现有方法时不需要JRebel。这些服务器能够通过JVM热交换功能执行热代码替换。只有当您想添加新类/方法并立即部署它们时,才需要JRebel。

感谢BalusC的回答。感谢BalusC的回答。