- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
课堂随记(The classroom with the mind)
课堂随记(The classroom with the mind)
struts2.0
Spring2.5
Hibernate3
框架一系列方便管理和实现特定功能规范
轻量级比较高效,耦合度低,重复度低的规范
容器一个提供管理和支持的环境
1。添加弹簧框架,
1.1选择MyEclipse的Spring2.5的库,默认勾选核心库
1.2选择添加引用,而不选择拷贝(拷贝库考项目中,暂用太多空间)
2.1暂不处理,默认选中
2.2新建添加弹簧框架,选择新,默认新建
XML文件到SRC目录下ApplicationContext。
如何配置applicationContext.xml
1。豆标签就是java类定义的另外一种方式,可以用
豆标签来申明一个对应的对象,而对象具体什么时候
产生,由容器根据代码的调用来生成。
国际奥委会(控制反转),用外来的对象,实现需要的功能。
1。依赖查找
2。依赖注入
2.1接口注入
2.2设置器注入,容器在生成对象后调用对应的集方法,
再将对象提供出来
2.3构造注入容器调用对应的构造方法来生成对象,
再将对象提供出来
春天容器事件
事件类
事件源
事件处理程序
1找到事件类(时间地点人物)。
2给事件源添加监听(监听接口的实现类)。
3。实现时间处理程序
1。传递容器,是参数的传递更简便
2。从容器中获得对象
我不允许重复,为了自动装配
名称允许重复,相同名称获取可以得到一个集合
容器一定是先将定义好的豆全部初始化(启动),之后容器
才能初始化完成(启动没有属性设置就是默认调用构造方法)。
,有属性就构造方法之后调用集方法。
1。容器有监听的定义,监听执行两次
2。容器没有监听的定义,有发布的定义,监听没有执行
3。容器有监听和发布的定义,只启动容器,监听只执行一次
4。一切正常,只修改容器内定义的对象名,正常执行,说明是
安类型自动装配
5.1。第一次监听之前
2。第一次监听之后
3。好的之后
4、第二次监听之后
反映
你的年龄
二十
新的person();
人getage();int。
户口簿学生证
你的出生日期
新来的学生。setbir(新户口簿()。getbir())
户口簿有出生年月和名字名族
学生证出生年月和名字,并且,学生证的值以户口簿为依据。
工厂的产品
牛肉加工厂牛肉
beffbeanfactory
befffactorybean
启动服务器发布项目(编辑器完成编译,)访问网站
启动弹簧在配置文件中写类的声明,
Kindergarten (children camps)
canteen
Newspaper delivery system
bean class= children -
bean class= Baozhi --
PropertyPathfactorybean--propertyPathBeanFactory
FileRetriebvingFactoryBean-- FileRetriebvingBeanFactory
IOC (inversion of control) inversion of control is to control the generation of the desired object
From the code to the container management,
The main form of inversion of control is the dependency injection (
Tell the name, the container wants or type, or
The processing method, the container will try to find what you want
And complete dependency injection.
)
DI (dependency injection)
Different places (or module method) have the same functional requirements, the solution is good
They will be drawn together with.
The person_run method before the execution of 1 point point
Before the implementation of the person_jump method to 2 point point
Before the implementation of the person_song method to 3 point point
The starting point of
您可能关注的文档
- 解决(autocad按鼠标中键(滑轮)不能平移)(Solve (AutoCAD press mouse middle button (pulley) cannot translate)).doc
- 解决sql2000只有数据文件恢复数据库或者重建日志文件(SQL2000 only data file to restore the database or rebuild the log file).doc
- 解决win7大量读写硬盘问题(Solve win7 read and write a lot of hard disk problems).doc
- 解决excel文件更新外部链接发生错误的问题(To solve the excel file update external link error problem).doc
- 解决先进的企业文化理念与员工观念相对滞后矛盾初探(Discussion on the contradiction between advanced enterprise culture idea and staff concept).doc
- 解决内存不能读写的方案(Solution that does not read and write memory).doc
- 解决大学生就业难根本途径(The fundamental way to solve the difficult employment of College Students).doc
- 解决同时装office 2007和2003 版本切换总发生重新配置(At the same time to solve the installed Office 2007 and 2003 versions of the total handover re configuration).doc
- 解决电脑关机后光电鼠标还亮着(To solve the computer shutdown after the mouse is still on).doc
- 解决网线时通时不通的小绝招(To solve the network with little trick).doc
- 课改推进教师引领课总结讲稿(Curriculum reform and promote teachers' leading class summary notes).doc
- 课本回顾(Book review).doc
- 读取资源(Read resource).doc
- 课程与师资并重,多彩培训体系的双核改造(Both courses and teachers, and the training system of dual core transformation).doc
- 课程与教学论(单选填空)(Curriculum and teaching theory (in radio)).doc
- 课程与教学论简答(Use the curriculum and teaching theory).doc
- 课程类别 - 上海政法学院(Course category - Shanghai Institute of Political Science and Law).doc
- 课程共享信息建设激励机制的创建(Create a course information sharing incentive mechanism construction).doc
- 课题名称乘法分配律(Project Name the distributive law of multiplication).doc
- 课题细胞的增殖、分化、癌变和衰老(Topic cell proliferation, differentiation, senescence and carcinogenesis).doc
最近下载
- 社会研究方法(第六版)PPT课件.ppt
- 四川省成都市2024-2025学年高一上学期期中考试数学试题含答案 (2).pdf VIP
- 燃气工程技术标.doc VIP
- 2025年中国浮选剂行业市场发展前景及发展趋势与投资战略研究报告.docx
- 浙江国企招聘-2024宁波市北仑区凤凰城建设发展有限公司招聘1人笔试模拟试题及答案解析.docx VIP
- 安全技术交底范本(大全).docx VIP
- 成都新都投资集团有限公司2025年招聘财务会计岗等岗位(23人)笔试备考试题及答案解析.docx VIP
- CJJ1-2008城镇道路工程施工与质量验收规范.doc VIP
- 长效生长激素使用的安全性问题分析(专家咨询会0908).ppt VIP
- 财务监理合同7篇.docx VIP
文档评论(0)