The difference between war and war exploded in idea

When I first started using idea, I found that every time the project modified JS or JSP page, it did not take effect, and it was really inconvenient to restart Tomcat for each modification. I think Idea must have a setting method, it is impossible to have such an inconvenient function.

It needs to be in Tomcat's settings as:

technology sharing

on 'update' action: update shortcut key when the user is actively performing the update: Ctrl + F9

on frame deactication: update when the edit window loses focus

You can set it according to your own needs, I have both settings here.

 


 

If your project does not have the option of Update classes and resources, only the following options are available, then please continue to read, because I started like this, in this case, you can only update the changes in the classes file after updating, not update Changes in static files.

technology sharing

 

The reason for this option is that you use the option of Deployment to first make the project into a war package and then run it.

technology sharing

 

Modification:

First remove the current project, add it again, select Artiface when adding

technology sharing

Then select the option with exploded after the project name

technology sharing

Notice:

  Select the postscript to fill in the Application context

  Then change in Server to: Update classes and resources

 

___:war exploded 
  to deploy (equivalent to deploying resource files after expanding)
___:war
  release mode, which is to make a war package first, and then deploy it

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326728553&siteId=291194637