//根据bean的类型注入 @AutoWired //根据bean的id注入 @Resource
Spring使用细节
原文:https://www.cnblogs.com/naixin007/p/10358721.html