java spring
iteye_7466
这个作者很懒,什么都没留下…
展开
-
java Spring 读取配置文件
读取xml文件 1.利用ClassPathXmlApplicationContextjava 代码 ApplicationContext context = new ClassPathXmlApplicationContext("beanConfig.xml"); HelloBean helloBean = (HelloBean)context.getBean("hello...原创 2012-01-31 15:51:22 · 99 阅读 · 0 评论 -
java web xml Spring 配置
在web.xml中配置了ContextLoaderListener: <!--spring 启动配置 --><listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></listener> ...原创 2012-02-09 15:51:18 · 84 阅读 · 0 评论