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

查看:32
本文介绍了.war 与 .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

罐子:包含企业 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 extension

战争:包含 Servlet 类文件、JSP 文件、支持文件、GIF 和 HTML 文件的 Web 模块打包为带有 .war(Web 存档)扩展名的 JAR 文件

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

耳朵:以上所有文件(.jar 和 .war)都打包为扩展名为 .ear(企业存档)的 JAR 文件,并部署到应用服务器中.

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

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

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