摘要: 为什么Spring要支持Autowire(自动装配) 先写几个类,首先定义一个Animal接口表示动物: 写一个Animal接口的实现Tiger类: 写一个动物园类Zoo,持有Animal接口,表示动物园中有动物: 配置一下spring文件,由于这个功能研究的是Autowire,因此我命名为auto 阅读全文
posted @ 2017-05-03 23:24 归零,路上 阅读(294) 评论(0) 推荐(0)