摘要: .1)特殊值的注入问题 <constructor-arg value="何邦柱" index="0"></constructor-arg> <constructor-arg index="1"><value>20</value></constructor-arg> 1.1 使用子元素<value>注 阅读全文
posted @ 2020-03-13 09:47 何邦柱 阅读(112) 评论(0) 推荐(0) 编辑
摘要: .1)三种方式的依赖注入 1.set方式的依赖注入 使用的标签是property 1.1 IOC容器的赋值:如果是简单类型(8个基本+String) 使用value赋值; 如果是对象类型 使用ref=“其他需要依赖的bean的id” 来赋值 <!-- 课程类--> <bean id="Scourse 阅读全文
posted @ 2020-03-13 09:08 何邦柱 阅读(406) 评论(0) 推荐(0) 编辑
摘要: .1)SpringIOC的发展史 1.刚开始的的new对象 太零散了 后期维护比较脑火 public void doJava(){ Course course=new CourseJava(); course.javaCourse(); } public void doHtml(){ Course 阅读全文
posted @ 2020-03-13 08:54 何邦柱 阅读(141) 评论(0) 推荐(0) 编辑
摘要: .1)概要以及介绍 1.2002 作者 Rod Jonnon 发布了一篇文章<Expoer One-toOne j2eedvelopment and Design> 2.2003年根据这篇文章产生了一些感悟 产生了Spring 3.spring最基础的核心AOP IOC 4.经过了18年的的洗礼衍生 阅读全文
posted @ 2020-03-13 08:49 何邦柱 阅读(233) 评论(0) 推荐(0) 编辑