博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
META-INF
阅读量:6732 次
发布时间:2019-06-25

本文共 1762 字,大约阅读时间需要 5 分钟。

hot3.png

For web, the META-INF directory is typically found in Java based webapplications such as jsp (Java server pages). You can also find them in Java related webservers such as Apache-Tomcat.

The file you mentioned:

MANIFEST.MF: The manifest file that is used to define extension and package related data. So mostly it can contain human readable info like version, producer,.. but also machine readable info like module dependencies in external frameworks you may be using

Everything inside META-INF:

The files/directories in the META-INF directory are recognized and interpreted by the Java Platform to configure applications, extensions, class loaders and services.

When you don't "deviate" of the normal path (eg: you have no additional frameworks,...), you don't need certain files and thus nothing happens if you delete them. Java will create a default manifest file with every application.

A META-INF directory is used in all sorts of applications, including zipped file formats like epub, open office and office open xml, so it would probably help if you mentioned what kind of web application you noticed this with. In most cases I've seen it's used to to tell an application what kind of use is intended for a ZIP file and typically includes metadata (just like it says on the tin) and possibly a manifest. 

Usually,existing a MANIFEST.MF file inside the META-INF folder. In this file, you can remark your project information such as :version and .jar refered to. If you package your ejb project, you must remark all .jar which you're refering to,then the container can load your refered classes in the refered package properly. Otherwise, the contianer may generates some errors like "can't find the class xxx"

转载于:https://my.oschina.net/u/138995/blog/203985

你可能感兴趣的文章
UITabelView 介绍
查看>>
怎样让APP成为万千中的精选
查看>>
VS2015安装EF Power Tools
查看>>
基于ActiveMQ5.5.0,Tomcat7.0.12的JMS环境搭建步骤
查看>>
BZOJ 1864:[Zjoi2006]三色二叉树(树DP)
查看>>
本地获取System权限CMD方法汇总(转)
查看>>
冲刺阶段第二天,4月20日。
查看>>
用this 对方法的扩展
查看>>
二分图匹配模板
查看>>
web -- Navigator.vibrate(); 使设备(有振动硬件)产生有频率的振动
查看>>
XMR恶意挖矿案例简析
查看>>
java基础 final 修饰成员变量 只能赋值一次问题
查看>>
Xml读取异常--Invalid byte 1 of 1-byte UTF-8 sequence
查看>>
Microsoft access SUM function round decimal number to Integer
查看>>
使用Visual Studio SDK制作GLSL词法着色插件
查看>>
在我的S5pv210开发板上安装busybox并体验busybox devmem 命令的强大功能
查看>>
网络虚拟化问题小记
查看>>
虚拟机桥接网络配置(Centos )
查看>>
Ubuntu下LaTeX中文字体配置
查看>>
使用CSS3制作网站常用的小三角形
查看>>