gpt4 book ai didi

java - Java中jar和war的区别

转载 作者:bug小助手 更新时间:2023-10-28 01:36:01 35 4
gpt4 key购买 nike

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

最佳答案

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

These files are simply zipped filesusing the java jar tool. These files arecreated for different purposes. Hereis the description of these files:

  • .jar files: The .jar files containlibraries, resources andaccessories files like property files.

  • .war files: The war file containsthe web application that can bedeployed on any servlet/jspcontainer. The .war file contains jsp,html, javascript and other filesnecessary for the development of webapplications.


Sun/Oracle 官方说明:


维基百科文章:

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

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com