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

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

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

参考:

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

原文地址:https://www.cnblogs.com/huahua035/p/6996253.html