码迷,mamicode.com
首页 > 编程语言 > 详细

jar中META-INF

时间:2017-05-29 20:34:02      阅读:179      评论:0      收藏:0      [点我收藏+]

标签:sso   speed   which   nat   provider   int   说明   ica   cto   

一直记得META-INF中只有在直接启动jar可执行文件时需要在manifest中配置启动类,最近看dubbo的配置,发现dubbo的配置都丢在META-INF下,特地搜索了下,官网对于META-INF的说明如下:

The META-INF directory

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

  • MANIFEST.MF

The manifest file that is used to define extension and package related data.

  • INDEX.LIST

This file is generated by the new "-i" option of the jar tool, which contains location information for packages defined in an application or extension.  It is part of the JarIndex implementation and used by class loaders to speed up their class loading process.

  • x.SF

The signature file for the JAR file.  ‘x‘ stands for the base file name.

  • x.DSA

The signature block file associated with the signature file with the same base file name. This file stores the digital signature of the corresponding signature file.

  • services/

This directory stores all the service provider configuration files.

一般来说,META-INF下不会存储和应用配置相关的信息。而且可以认为是Java自己的元数据目录。其他应用配置,应该放在其他目录比如conf。

jar中META-INF

标签:sso   speed   which   nat   provider   int   说明   ica   cto   

原文地址:http://www.cnblogs.com/zhjh256/p/6918862.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!