欢迎来到天天文库
浏览记录
ID:25627575
大小:475.00 KB
页数:38页
时间:2018-11-21
《hibernate+spring+struts2+extjs开发crud功能》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Hibernate+Spring+Struts2+ExtJS开发CRUD功能新一篇:学习HibernateJPA1、入门:各种开源框架环境及下载:Hibernate:3.xhttp://www.hibernate.org/需要hibernatecore和annotations包。Spring:2.xhttp://springframework.org/Struts2:2.xhttp://struts.apache.org/2.x/ExtJS:2.Xhttp://extjs.com/JSON:JSO
2、N可以到http://www.json.org/查看详细内容,这里使用json-libhttp://json-lib.sourceforge.net/本所需要的包:2、配置:(1)首先是配置web.xml,配置方法可以在下面的配置文件代码注释中查看,这里主要是Struts2的配置:struts2org.apache.struts2.dispatcher.FilterDispatcher
3、-class>struts2/*和Spring的配置:contextConfigLocation/WEB-INF/spring/*.xml
4、stener>org.springframework.web.context.ContextLoaderListenerWeb.xml的全部文件:5、.org/2001/XMLSchema-instance"xsi:schemaLocation="http://java.sun.com/xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">struts2<6、context-param>contextConfigLocation/WEB-INF/spring/*.xmlencodingFilterorg.springframework.web.filter.C7、haracterEncodingFilterencodingUTF-8struts2org.apache.struts2.dispatcher.FilterDispa8、tcherstruts2/*org.springframework.web.context.ContextLoaderListener
5、.org/2001/XMLSchema-instance"xsi:schemaLocation="http://java.sun.com/xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">struts2<
6、context-param>contextConfigLocation/WEB-INF/spring/*.xmlencodingFilterorg.springframework.web.filter.C
7、haracterEncodingFilterencodingUTF-8struts2org.apache.struts2.dispatcher.FilterDispa
8、tcherstruts2/*org.springframework.web.context.ContextLoaderListener
此文档下载收益归作者所有