Spring配置我知道

*、spring是一个轻量级的后台框架,随着更多优秀IT人才的涌入,spring越来越强大

     

*、我认知的spring管理对象生命周期

spring负责系统中对象的生命周期,实现方式是在默认的applicationcontext.xml中配置对象的别名及其路径(该xml可以引入其他xml文件从而实现分模块统计),若报出No bean named '*' is defined便说明你的xml文件中要么没有配置该类,要么配置有误

 

*、我认知的spring管理hibernate

spring整合hibernate的实现方式即applicationcontext.xml增加或引入hibernate.xml的配置文件即可。
其中主要是sessionFactory中的配置如:
<property name="mappingLocations">  
            <value>classpath:*.hbm.xml</value>  
</property>
若遇到named query not known便是该配置丢失导致。

 

*、我认知的spring管理jbpm

spring整合jbpm的实现方式:jbpm.cfg.xml要增加对spring配置文件的引用,除此之外,spring配置文件
中也要增加jbpm的hibernate的配置属性,具体详见:
http://blog.csdn.net/liujiahan629629/article/details/23299791

 

 *、spring的applicationcontext和bean对象

第一步:
spring的applicationContext.xml默认放于web-inf下
第二步:
applicationContext.xml引入的文件可自由指定注意是否有/
第三步:
bean的装配路径(仅有Id,class亦可)

*、spring配置手动操作之FileSystemXmlApplicationContext的路径文件

建议写物理路径的全路径

----------------------------------------------------------资源资源--------------------------------------------------------------

 

*、spring整合jbpm

http://blog.csdn.net/liujiahan629629/article/details/23299791

 

猜你喜欢

转载自lbovinl.iteye.com/blog/2348970