Spring
zzz011
这个作者很懒,什么都没留下…
展开
-
第一章 Spring简介
对象的创建了解Spring必须得了解一下对象的工厂模式. Model: public interface Fruit { public void eat(); } public class Apple implements Fruit{ public void eat(){ System.out.println("吃苹果"); } } public ...2010-05-03 20:00:44 · 87 阅读 · 0 评论 -
第二章 创建Bean的及Bean范围
实例化bean 示例: public class Orange implements Fruit { private String name; public Orange() { super(); } public Orange(String name) { super(); this.name = name; } @Overri...2010-05-03 21:58:47 · 80 阅读 · 0 评论 -
Set注入
Dao层: Dao层接口: public interface FruitDao { public void create(); } 实现类: public class FruitDaoImpl implements FruitDao { public void create(){ System.out.println("Dao层方法create被调用"); } ...2010-05-04 21:12:03 · 63 阅读 · 0 评论