java - Java中jar和war的区别

标签 java jar war

.jar.war 文件有什么区别?
它只是文件扩展名还是还有更多?

最佳答案

来自 Java Tips: Difference between ear jar and war files :

These files are simply zipped files using the java jar tool. These files are created for different purposes. Here is the description of these files:

  • .jar files: The .jar files contain libraries, resources and accessories files like property files.

  • .war files: The war file contains the web application that can be deployed on any servlet/jsp container. The .war file contains jsp, html, javascript and other files necessary for the development of web applications.


Sun/Oracle 官方说明:


维基百科文章:

关于java - Java中jar和war的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5871053/

相关文章:

java - Apache POI : Why data is not properly inserted?

java - WebElement.equals() 方法如何检查相等性?

java - 如何在 CSV 中提取使用 JDBC 的查询结果

eclipse - 无法加载 servlet-api.jar

java - 将 WAR 文件上传到 WebSphere 6.1 时出现问题

java - 在多模块项目中获取 .war 依赖的覆盖范围

java - 我应该使用哪种基于 Java 的工作流引擎?

java - 获取正在运行的 JAR 文件的路径返回 "rsrc:./"

java - 如何在基于 Maven 的 Java War 项目中设置 Angular 4

java - 执行 JPQL 查询的工具?