JavaScud | Forum | JIRA | Blog |
  Dashboard > SpringSide > Home > SS20Helloworld
  SpringSide Log In View a printable version of the current page.  
  SS20Helloworld
Added by calvin, last edited by Anonymous on Nov 10, 2006  (view change)
Labels: 
(None)

Helloworld Example

1. 概述

Hello World 演示 Spring2.0 + Struts 1.2.9 + Hibernate3.2 的用户CRUD管理界面,可作为对这一SSH经典架构的入门学习之用。

代码描述见Spring+Struts+Hibernate CRUD代码编写教程

虽然从Spring MVC 改回Struts,但通过对Equinox的学习,发现Struts 其实也可以很像Spring MVC的,详见Pragmatic Struts

2.Screen Shot

3. 安装

1.进入examples/helloworld目录,双击目录下的quickstart.bat即会看到上面的界面。

4. 重要的目录结构

1.数据库文件 /resources/hsqldb/helloworld.script

2.数据库连接配置 /resources/config/jdbc.properties

其他目录结构务必查看 SpringSide项目目录结构说明

4. 与Equinox的异同

Appfuse的Equniox是个很不错的demo,同样是Spring+Struts+Hibernate架构来演示User管理,区别主要在:

1.业务层简化

   Dao 与 Manager 合一,无Interface的架构。

   使用JDK5,抽象了HibernateEntityDao泛型基类,默认拥有CRUD的操作。

2.Struts使用简化

  抽象了StrutsEntityAction基类,默认拥有CRUD的操作。

  同时Struts FormBean 采用LazyValidatorForm,处理时先从数据库查出数据再绑定,更符合项目实际情况。

3.采用selenium作集成测试

   Selenium集成测试是一样很有用东西,并且可以取消对Controller的单元测试。

4.其他每一处细微功能的改进

   如对Spring 2.0的使用等等....

没有具体环境不知道哦

Site running on a free Atlassian Confluence Open Source Project License granted to WebWork China. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.3 Build:#808 May 29, 2007) - Bug/feature request - Contact Administrators