idea 中Update resources和Update classes and resources、Redeploy的区别和应用场景

官方文档链接: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

你可能感兴趣的:(环境配置)