为什么jar没有生成directory entries,jar中的class就不能被Spring扫描到呢?
原文链接:http://www.iteye.com/problems/97236
1 关于directory entries 的jar与不含directory entries 的区别及读取里面文件的方式:http://blog.csdn.net/wangpeng047/article/details/8202353,
2 spring扫描bean的说明来自spring的reference文档,刚好开源中国上有一份:http://www.oschina.net/code/explore/spring-3.0.4/spring-framework-reference/src/beans-classpath-scanning.xml,里面明确说明:
<note>
<para>The scanning of classpath packages requires the presence of corresponding directory entries in the classpath. When you build JARs
with Ant, make sure that you do <emphasis>not</emphasis> activate the files-only switch of the JAR task.</para>
</note>
配合我的这篇博客看: http://blog.csdn.net/wabiaozia/article/details/56499360