tomcat deployed position and the difference between war and war exploded intellij idea of deployment projects

tomcat deployed position and the difference between war and war exploded intellij idea of ​​deployment projects

From https://blog.csdn.net/u013041642/article/details/79475095

http://www.seotest.cn/jishu/32877.html

 

First, explain what is the difference in intellj idea in the target directory and directory out: https: //blog.csdn.net/qq_26591517/article/details/80731088

content:

      target is stored in compiling the results of a single Module. out of all stored Module (modules) compiled the results of this project. 

      If you specify compile the results for a Module path, it will not re-export to a folder out.

      You can set the directory Project compiler output in the Project Structure in the Project tab. After selecting a module in the Modules, the Paths tab may be provided on the right side of the module directory Compiler output.

He went on to explain the difference between war and war exploded tomcat deployment:

Choose war or war exploded first look at the difference between the two of them here:
1.war mode may be called a release mode, is labeled as the first war package, in the form of war package deployed on tomcat, then posted to the server;
2.war exploaded called heat mode can deploy mode, generally used in the development, it put folders, pages, and move to deploy Tomcat folder inside, and then published to the server.
 

war: This is the first labeled as war package, and then released, the normal release of this is to use. WEB project is to form packets to the server to

Under the project target directory will generate war package, and after extracting war package will be deployed to the tomcat webapp directory.

Note: If the application-context is set to /, there will be no war after extracting the file under tomcat directory, only the specified file directory, will generate a folder, this folder as the project's root directory

war exploded: mode is directly to the folder, jsp pages, classes, and so moved to the Tomcat deployment folder inside, loaded deployment. So in this way it supports hot deployment, but also the general development at the time this way.
 
 

 

At this time, there will be no war unzipped folder in the directory tomcat's. If idea, it will $ {user.home} /. IntelliJIdea / system / tomcat directory files generated under the project folder, which contains tomcat configuration, the log information
Tulio. . .
 
When using hot deployment mode is set to note here: In this modified page file when the need to restart the service.

 

 

Guess you like

Origin www.cnblogs.com/hyjh/p/11373483.html