S2SH整合步骤

来源:互联网 发布:51单片机代号 编辑:程序博客网 时间:2024/05/22 12:03

<!-- /* Font Definitions */ @font-face{font-family:宋体;panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-alt:SimSun;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145 0;}@font-face{font-family:"/@宋体";panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal{mso-style-parent:"";margin:0cm;margin-bottom:.0001pt;text-align:justify;text-justify:inter-ideograph;mso-pagination:none;font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Times New Roman";mso-fareast-font-family:宋体;mso-font-kerning:1.0pt;} /* Page Definitions */ @page{mso-page-border-surround-header:no;mso-page-border-surround-footer:no;}@page Section1{size:595.3pt 841.9pt;margin:72.0pt 90.0pt 72.0pt 90.0pt;mso-header-margin:42.55pt;mso-footer-margin:49.6pt;mso-paper-source:0;layout-grid:15.6pt;}div.Section1{page:Section1;} /* List Definitions */ @list l0{mso-list-id:250509311;mso-list-type:hybrid;mso-list-template-ids:256813736 -981199162 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}@list l0:level1{mso-level-number-format:japanese-counting;mso-level-tab-stop:18.0pt;mso-level-number-position:left;margin-left:18.0pt;text-indent:-18.0pt;}@list l1{mso-list-id:567500497;mso-list-type:hybrid;mso-list-template-ids:758275930 -261971484 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}@list l1:level1{mso-level-tab-stop:18.0pt;mso-level-number-position:left;margin-left:18.0pt;text-indent:-18.0pt;}@list l2{mso-list-id:1248658155;mso-list-type:hybrid;mso-list-template-ids:-2018361050 110016132 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}@list l2:level1{mso-level-tab-stop:18.0pt;mso-level-number-position:left;margin-left:18.0pt;text-indent:-18.0pt;}ol{margin-bottom:0cm;}ul{margin-bottom:0cm;}-->

S2SH整合步骤

一.  搭建开发环境

1.     准备三者的JAR文件,不要忘记相应数据库的驱动.

2.     配置web.xml文件,主要配置两项内容

1).自动加载Spring容器的监听器ContextLoaderListener配置

2).应用Struts2的过滤器FilterDispatcher配置

3.     配置struts.properties文件,使用spring来管理所有组件

二.  应用开发步骤

1.     使用Hibernate反转生成所需的持久化类和映射文件

2.     编写持久化类对应的CRUD(DAO)Service,并再applicationContext.xml中配置它们

3.     applicationContext.xml文件中配置对DAO类和Service类的事务代理

4.     编写相关的页面和Action,Action中调用DAO类或者Service类中的方法

5.     applicationContext.xml文件中配置Action

6.     struts.xml中配置Action,注意引用applicationContext.xml中配置好的Action

7.     发布并测试

原创粉丝点击