系统实现——编码准备

  在经过对系统的需求分析概要设计详细设计后,便开始对系统进行编码实现。

  在这一章中,主要介绍作者在系统开发过程中的开发环境,代码的目录结构,框架整合的步骤。

  • 开发环境

    安装STS

    https://spring.io/tools/sts/legacy

    

    配置Apache服务器

    

    

    

    

    安装Hibernate插件

    

    

    

  • 代码目录结构

    

  • 框架整合步骤

    加入Spring

      加入Spring的jar包

      

      

      在web.xml中配置contextloaderlistener

      

      新建源码包保存配置文件

      

      加入Spring的配置文件

      

    Spring整合Hibernate

      加入Hibernate 的 jar包

      

      加入Hibernate的配置文件

      

      编写Hibernate配置文件

      

      加入c3p0的jar包

      

      加入mySql的jar包

      

      加入数据库资源配置文件

      

      编写applicationContext.xml

      

      

    整合Struts2

      加入Struts2 的 jar包

      

      加入Struts2的 Spring 插件

      

      在web.xml 中加入Struts2 的filter

      

      加入Struts2配置文件

      

      新建Action 类

      

      新建配置Bean的Spring配置文件

      

      在Struts2配置文件中配置Action

      

  

  至此,系统开发的环境已经准备完毕,可进行实际的代码研发工作。

 

posted on 2017-05-05 00:11  sillypasserby  阅读(701)  评论(0编辑  收藏  举报

导航