Springboot注解汇总(持续更新)

@Repository用于标注数据访问组件,
@Repository(value="userDao")注解是告诉Spring,让Spring创建一个名字叫“userDao”的UserDaoImpl实例