Spring
jiangwei1982
这个作者很懒,什么都没留下…
展开
-
Spring中的四种声明式事务的配置
Spring中的四种声明式事务的配置Spring容器中有两种思想很重要,也就是我们常用的Ioc和Aop,如果理解了这两种思想,对于我们学习设计模式和编程有很大的帮助,美国四人帮(GOF)写的设计模式中,有很多都用到了Ioc的思想。简单的说就是依赖注入的思想。常见的一种情况:如果一个类中要复用另外一个类中的功能时,我们可能会首先想到继承,如果你知道Ioc这种思想的话,我想你不会用继承,你会马上想到把...原创 2009-02-27 22:00:22 · 65 阅读 · 0 评论 -
spring如何使用多个xml配置文件
1, 在web.xml中定义 contextConfigLocation参数.spring会使用这个参数加载.所有逗号分割的xml.如果没有这个参数,spring默认加载web-inf/applicationContext.xml文件.<context-param><param-name>contextConfigLocation</param-name><...原创 2009-04-24 23:53:08 · 68 阅读 · 0 评论 -
Spring中的四种声明式事务的配置
原创 2009-02-27 22:00:22 · 56 阅读 · 0 评论 -
spring如何使用多个xml配置文件
t-param><param-name>contextConfigLocation</param-name><param-value>classpath*:conf/spring/applicationContext_core*.xml,classpath*:conf/spring/applicationContext_dict*.xml,classpath*:conf/spring/applicationCo原创 2009-04-24 23:53:08 · 83 阅读 · 0 评论