创建spring框架并测试
1.创建Web project
2.项目右键 -->myeclipse-->add Spring Capabilities
-->选择前四个
Spring 3.0 AOP Libraries)
Spring 3.0 Core Libraies、
Spring 3.0 Persistence Core Libraries-<Myeclipse-Libray>
Spring 3.0 Persistence Jdbc Libraries <Myeclipse-Libray>
--->finsh
3.在src新建package-->com-->Test1
Test1测试Spring是否加载成功的主要代码:
public static void main(String[] args){
ApplicationContext context = new
ClassPathXmlApplicationContext("applicationcontext.xml");
System.out.println("ceshi successfully!");
}