转自:
http://liuqiang5151.iteye.com/blog/1583770
Spring通过component-scan扫描Bean,如果达成jar包,将失效。
正确的做法是:在Eclipse 导出jar的时候,选中
add directory entries选项。
Spring扫描jar包中的类
猜你喜欢
转载自panyongzheng.iteye.com/blog/2196081
今日推荐
周排行