摘要: 记录:在实体类中加入@Component注解和@Autowired注解时Service不能注入成功。 @Component //把普通pojo实例化到spring容器中 ① public class MyUtil { // 这里是需要注入的Service ② @Autowired private M 阅读全文
posted @ 2018-10-24 09:53 少说点话 阅读(10416) 评论(10) 推荐(2)
网站运行: