.war vs .ear文件 [英] .war vs .ear file

查看:142
本文介绍了.war vs .ear文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.war和.ear文件有什么区别?

What is the difference between a .war and .ear file?

推荐答案

来自 GeekInterview


在J2EE应用程序中,模块根据其功能打包为EAR,JAR和WAR

In J2EE application, modules are packaged as EAR, JAR and WAR based on their functionality

JAR:
包含企业java bean(类文件)和EJB部署描述符的EJB模块被打包作为带有.jar扩展的JAR文件

JAR: EJB modules which contain enterprise java beans (class files) and EJB deployment descriptor are packed as JAR files with .jar extenstion

WAR:
包含Servlet类文件,JSP文件,支持文件,GIF和HTML文件的Web模块打包为JAR带有.war(web archive)扩展名的文件

WAR: Web modules which contain Servlet class files, JSP Files, supporting files, GIF and HTML files are packaged as JAR file with .war (web archive) extension

EAR:
所有上述文件(.jar和.war)都打包为带有.ear的JAR文件(企业版)存档)扩展并部署到Application Server中。

EAR: All above files (.jar and .war) are packaged as JAR file with .ear (enterprise archive) extension and deployed into Application Server.

这篇关于.war vs .ear文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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