---
title: " rapid-framework v3.9新版本发布"
author: "badqiu"
date: "2010-07-13T21:17:35Z"
tags: ["Flex", "Hibernate", "JPA", "SSH", "Spring"]
categories: ["编程语言"]
slug: "rapid-framework-v3-9"
draft: false
lastmod: "2010-07-13T21:17:35Z"
id: 711949
url: "https://badqiu.iteye.com/blog/711949"
---

hi,all

    本次新版本发布最主要的更新内容是生成器的加强,并且之前已经发布了rapid-generator独立版.

此次升级保证模板的兼容性.后续rapid-framework的发行版将不直接提供rapid-generator的源码在项目中,以便以后大家编写的模板都可以在一个生成器引擎中运行. 还有现生成页面布局使用rapid的模板继承,目标是替换现在的sitemesh布局框架.

**后续计划:**

     本次发行版本是基于ant构建的最后一个版本,下一版本将迁移至**maven**构建,并且本次发行已经带了pom.xml文件在项目中,编写好了相关dependency,但只是一个空壳,没有实际作用.

**v3.9更新内容:**

**脚手架相关修改**

- 使用rapid的[jsp继承](http://code.google.com/p/rapid-framework/wiki/rapid_jsp_extends)用于网页的布局
- 集成hibernate validator
- 引用Flash Scope,用于显示消息
- 将extremetable替换为更简单的simpletable列表分页.
- dao层查询代码修改,让用户选择是否需要使用xsqlbuilder
- 加入SharedRenderVariableInterceptor[?](http://code.google.com/p/rapid-framework/w/edit/SharedRenderVariableInterceptor),用于存放所有视图需要的共享变量
- 增加HttpInclude[?](http://code.google.com/p/rapid-framework/w/edit/HttpInclude)功能,便freemarker,velocity可以完成jsp:include功能
- PageRequest[?](http://code.google.com/p/rapid-framework/w/edit/PageRequest)现在使用强类型的TableNameQuery[?](http://code.google.com/p/rapid-framework/w/edit/TableNameQuery)
- dbunit测试改进
- flex插件更新至flex4(由随便混混贡献)

**生成器相关修改**

- Generator包提供jar包,不直接在项目中使用源代码,以便提供一个统一的生成器引擎,大家编写的模板都可以在生成器上面运行.
- table变量现在可以通过配置文件自定义配置,具体请查看[rapid\_generator](http://code.google.com/p/rapid-framework/wiki/rapid_generator)
- 增加table变量枚举的生成
- 生成器配置文件 generator.properties 改名为 generator.xml
- 生成的代码优化

**感谢的人:**

     随变混混同学,将flex3插件迁移至flex4,个人介绍: 学生，热衷于Java，flex领域的web开发，[hhlai1990@gmail.com](mailto:hhlai1990@gmail.com)

     其它为rapid提交bug的同学

**在线demo:**

   flex demo: [http://rapid-flex.appspot.com/flex/main.html](http://rapid-flex.appspot.com/flex/main.html)

    spring\_rest在线demo: [http://demo.rapid-framework.org.cn:8080/springmvc\_rest\_demo/userinfo](http://demo.rapid-framework.org.cn:8080/springmvc_rest_demo/userinfo)

# rapid-framework框架介绍

rapid-framework是一个以spring为核心的项目脚手架(或者称为胶水框架)，框架将各个零散的框架(struts,strust2,springmvc,hibernate,ibatis,spring\_jdbc,flex)搭建好，并内置一个代码生成器，辅助项目开发,可以生成java的hibernat model,dao,manager,struts+struts2 action类,可以生成jsp的增删改查及列表页面

## 框架概览

- **Dao**: spring\_jdbc, hibernate, ibatis2, ibatis3, 可以切换dao组件
- **Dao Helper**: 基于dialect的分页(ibatis2, ibatis3, jdbc),动态sql构造工具rapid-xsqlbuilder
- **Web MVC**: struts1, struts2, springmvc, springmvc\_rest, 可以切换web组件
- **Template**: (velocity, freemarker, jsp)的模板可以相互继承, velocity及freemarker可以实现模板之间的管道操作
- **分页组件**: extremeTable, rapid-simpletable
- **UI**: rapid-validation表单验证, My97DatePicker?日期控件
- **单元测试**: spring test+DBunit
- **底层支撑**: 插件体系及代码生成器(rapid-generator)

 **项目下载:**  
[http://code.google.com/p/rapid-framework/downloads/list](http://code.google.com/p/rapid-framework/downloads/list)

 

**项目HOME:**  
[http://www.rapid-framework.org.cn/](http://www.rapid-framework.org.cn/)

 

**文档:**  
[http://code.google.com/p/rapid-framework/wiki/menu](http://code.google.com/p/rapid-framework/wiki/menu)