Struts2.1+Spring3.0+Hibernate3.3+利用AJAX传输Json数据:
一、首先用MyEclipse加入Struts2.1 core包。
二、将http://pan.baidu.com/s/1eRWk0 中的架包解压到lib文件夹下,build到path里。
三、用MyEclipse加入Spring3.0 选择用户自己的架包。
四、用MyEclipse加入Hibernate3.3 同样选择用户自己的架包。
五、如果applicationContext.xml在src下,将一下代码加入</web-app>之前:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
六、完成。