摘要: spring依赖注入的三种方式 一: 属性注入 就是使用注解@Autowired/@Resource注入 @Controller public class StudentController { //1.属性注入 @Autowired StudentService studentService; } 阅读全文
posted @ 2024-05-24 11:07 杨吃羊 阅读(641) 评论(0) 推荐(0)