【问题记录】javaweb项目的jar无法识别注解的bean

问题:eclipse中javaweb项目,打成jar包供其它项目使用,发现无法识别使用注解的bean。
原因参考:
http://blog.csdn.net/wangpeng047/article/details/8202353
https://stackoverflow.com/questions/13245570/jar-file-add-directory-entries-eclipse-option-while-exporting-jar
http://www.iteye.com/problems/97236
解决办法:在用eclipse export jar的时候,勾选add directory entries 。勾选了add directory entries之后打出的jar包,多了路径的信息。

posted @ 2018-03-23 01:17  zeling  阅读(1054)  评论(0编辑  收藏  举报