Spring依赖注入简单例子

Spring依赖注入 依赖注入主要是对我们创建的JavaBean中的属性进行赋值。比如,下面我们创建两个类Person类(有getter()和setter()方法)和Student类: 1. 编写JavaBean Person类 Student类 2.ApplicationContex.xml配置 3.测试程序及输出结果分析
相关文章
相关标签/搜索