按类型自动装配

来源:5-4 自动装配与Autowired注解

杰哥哥哎

2023-04-22 15:14:02

为什么没有报老师上课时演示的错误?

https://img.mukewang.com/climg/6443889b0923301a11390664.jpg

https://img.mukewang.com/climg/644388750918f85d09360300.jpg

https://img.mukewang.com/climg/6443885f0953cef609970261.jpg

https://img.mukewang.com/climg/6443893009494f3018820716.jpg

写回答

1回答

好帮手慕小尤

2023-04-23

同学你好,1、建议同学查看UserDao类上是否添加如下注解呢?或是否没有添加注解呢?

https://img.mukewang.com/climg/6388731209292df705950148.jpg

2、另外这里也可参考其他同学的代码,看是否书写一样,如果是,可查看老师对应给出的回复~

https://class.imooc.com/course/qadetail/327793

祝学习愉快!

0

0 学习 · 9886 问题

查看课程

相似问题