
spring
文章平均质量分 78
javacareer2010
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Spring中ClassPathXmlApplicationContext类的简单使用
一、简单的用ApplicationContext做测试的话,获得Spring中定义的Bean实例(对象).可以用: ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml"); RegisterDAO registerDAO = (RegisterDAO)ac.getBean("R转载 2012-11-21 11:27:00 · 269 阅读 · 0 评论 -
Spring contextConfigLocation
spring如何使用多个xml配置文件 1, 在web.xml中定义 contextConfigLocation参数.spring会使用这个参数加载.所有逗号分割的xml.如果没有这个参数,spring默认加载web-inf/applicationContext.xml文件. 例如: contextConfigLocation classpath*:conf/spring/app转载 2012-11-22 10:49:53 · 276 阅读 · 0 评论