错误截图: 2、原因: (1)原因一:创建对象 id 和去容器中要获取的对象 id 名不一致 (2)原因二:applicationContext.xml中配置组件扫描配置不对 有用点个关注,手留余香!😗 😗 😗