Spring Bean依赖但注入(autowired或resource)时NullPointerException(xml和annotation混用的场景下)

项目中同时使用了xml和annotation的方式管理Spring Bean

启动时候报NullPointerException,依赖注入失败!

 

参考:

http://fly0wing.iteye.com/blog/2083398

posted @ 2017-06-13 00:39  花花牛  阅读(2030)  评论(0编辑  收藏  举报