First of all, the customary English nomenclature, all of the basic it terminology is named in English or English abbreviations, jar_war_ear, these three abbreviations are all AR end (application Archive) meaning the archive file . The differences in the preceding 3 letters represent the differences in their nature, as shown in the following table:
|
JAR |
WAR |
EAR |
English |
Java Archive File |
Web Archive File |
Enterprise Archive File |
Include content |
class , Properties file, is the smallest unit of file encapsulation; |
Servlet , JSP pages, JSP tag Libraries, JAR Library Files , Html/xml documents and other common resource files, slices, audio files, etc.; |
in addition to containing JAR , WAR , it also includes EJB Components |
Deployment Files |
Application-client.xml |
Web. XML |
Application.xml |
level |
Small |
in |
Big |
- Jar includes class, war includes Jar,ear including war.
Common cases:
Create an ear project + Create a war project and put the ear in the ear = deploy the ears to was
The difference and practical application of jar_war_ear