Java中jar和war的区别 [英] Difference between jar and war in Java

查看:33
本文介绍了Java中jar和war的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.jar.war 文件有什么区别?
是只有文件扩展名还是还有其他内容?

What is the difference between a .jar and a .war file?
Is it only the file extension or is there something more?

推荐答案

来自 Java Tips: 耳罩的区别和战争文件:

这些文件只是压缩文件使用 java jar 工具.这些文件是为不同目的而创建.这里是这些文件的描述:

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 文件:.jar 文件包含图书馆、资源和附件文件如属性文件.

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

.war 文件:war 文件包含网络应用程序部署在任何 servlet/jsp 上容器..war 文件 包含 jsp,html、javascript 等文件网络发展所必需的应用程序.

.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中jar和war的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆