Spring Bean依赖但注入(autowired或resource)时NullPointerException(xml和annotation混用的场景下) 项目中同时使用了xml和annotation的方式管理Spring Bean 启动时候报NullPointerException,依赖注入失败! 参考: http://fly0wing.iteye.com/blog/2083398