摘要: 一、为什么Spring要支持Autowire(自动装配) 先写几个类,首先定义一个Animal接口表示动物: 1 public interface Animal { 2 3 public void eat(); 4 5 } 写一个Animal接口的实现Tiger类: 1 public class T 阅读全文
posted @ 2020-08-12 22:06 慎终若始 阅读(138) 评论(0) 推荐(0) 编辑