@Repository和@Autowired是什么意思
来源:3-8 持久层实现——StudentDAO和CourseDAO
慕仔0431810
2020-02-22 13:24:28
@Repository和@Autowired是什么意思
1回答
同学你好,@Repository和@Autowired是spring中比较重要的两个注解:
@Repository用在Dao层的实现类上,用来创建bean;
@Autowired是用来进行自动注入属性,简单点也就是进行赋值操作;
如果我的回答解决了你的疑惑,请采纳。祝:学习愉快~
相似问题