idea 中Update resources和Update classes and resourcesRedeploy的区别和应用场景
Posted Chris-Chang
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了idea 中Update resources和Update classes and resourcesRedeploy的区别和应用场景相关的知识,希望对你有一定的参考价值。
官方文档链接:https://www.jetbrains.com/help/idea/updating-applications-on-application-servers.html#update_options
Application update options
The update options are different depending on:
- the artifact format, i.e. on whether the application artifact is
exploded (unpacked) or packed (e.g. WAR, EAR) - the run/debug
configuration type, i.e. on whether the run/debug configuration is
local or remote (see Local and remote run configurations)
Option | Description | Available for |
---|---|---|
Update resources | All changed resources are updated (html, JSP, javascript, CSS and image files). | Exploded artifacts in local configurations |
Update classes and resources | Changed resources are updated; changed Java classes (EJBs, servlets, etc.) are recompiled.In the debug mode, the updated classes are hot-swapped. In the run mode, IntelliJ IDEA just updates the changed classes in the output folder. Whether such classes are actually reloaded in the running application, depends on the capabilities of the runtime being used. | Exploded artifacts in local configurations |
Hot swap classes | Changed classes are recompiled and reloaded at runtime. This option works only in the debug mode. | Packed artifacts in local configurations; exploded and packed artifacts in remote configurations |
Redeploy | The application artifact is rebuilt and redeployed. The operation may be time-consuming. | Exploded and packed artifacts in local and remote configurations |
Restart server | The server is restarted. The application artifact is rebuilt and redeployed. The operation may be very time-consuming. | Exploded and packed artifacts in local configurations |
以上是关于idea 中Update resources和Update classes and resourcesRedeploy的区别和应用场景的主要内容,如果未能解决你的问题,请参考以下文章
IntelliJ IDEA热加载自动更新(Update classes and resources )
idea tomcat 怎样出现update classes and resources
IDEA热部署后 update classes and resource不管用?&热部署无效?:IDEA热部署注意事项
IntelliJ IDEA 自动编译功能无法使用,On 'update' action:选项里面没有update classes and resources这项