斗爷

导航

spring 攻略第二版文摘

第一章 spring简介

spring ioc 容器:

1. bean factory

2.application context

实例化application context:

ApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");

HelloWorld helloWorld = (HelloWorld) context.getBean("helloWorld");

helloWorld.hello();

 

第八章 spring @mvc

posted on 2012-10-12 09:50  斗哥哥  阅读(232)  评论(0编辑  收藏  举报