好久没有打开MyEclipse,发现都快忘光了,重拾记忆,写下此文以防再次遗忘
1.工具:Myeclipse6.0 JDK1.5.0 tomcat6.0 oracle9.2.0
2.新建web项目,J2EE 1.4
3.Add struts,没什么好说
4.Add spring2,选择需要的包,Copy checked Library contents to project folder
然后记得将配置文件applicationContext.xml放在WebRoot/WEB-INF/下
5.Add hibernate3.1,Copy checked Library contents to project folder-->next-->
Spring configuation file-->next-->Existing Spring configuation file 填写
sessionFactory ID-->next-->填写bean ID-->next-->finsh
6.删除classpath下的
asm.jar
asm-attrs.jar
cglib-2.1.3.jar
7.给classpath添加
commons-pool-1.3.jar
commons-collections-3.1.jar
8.解决中文问题:http://superzhaoxi.iteye.com/blog/148932
9.将action交给spring管理