摘要: 为什么Spring要支持Autowire(自动装配) 先写几个类,首先定义一个Animal接口表示动物: 写一个Animal接口的实现Tiger类: 写一个动物园类Zoo,持有Animal接口,表示动物园中有动物: 配置一下spring文件,由于这个功能研究的是Autowire,因此我命名为auto 阅读全文
posted @ 2017-04-13 23:26 五月的仓颉 阅读(14562) 评论(2) 推荐(12) 编辑