How to configure hot deployment in idea

When we use idea to develop Java web projects, we will use tomca for deployment and testing of project containers. In the process of developing and debugging, we need to constantly modify the code. Repeated restarting of the server will greatly affect the efficiency. At this time, we need to Use hot deployment.

1.

insert image description here

2.

You click into the deployment, maybe your deployment at the sever startup is day421:war (day421 is just the name of this file) Click the "+" of the red arrow, then click Artifact... to create a day421:war exploded (I Save the trouble here without starting from scratch), then click day421:war Click the "-" under the red "+" to delete it. Be sure to delete! ! ! !

(If you don't configure tomcat, you can go here to configure it. Configure tomcat ) Part of his middle part is to configure tomcat.

insert image description here

3.

Click sever to return and change them to update classes and resources in on 'update' action and on frame deactivation. If there is no update classes and resources in the options below, it means that you have a problem in the second step.
insert image description here[1] https://www.cnblogs.com/jpwz/p/10538635.html

Guess you like

Origin blog.csdn.net/MCYZSF/article/details/89460068