首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET Framework >

rapid-framework公布v1.0.2版本

2012-11-08 
rapid-framework发布v1.0.2版本该版本主要增加的相关文档导航,及一些模板及目录的调整在线文档也增加了不

rapid-framework发布v1.0.2版本

该版本主要增加的相关文档导航,及一些模板及目录的调整

在线文档也增加了不少内容.具体可以查看在线文档

项目Home: http://code.google.com/p/rapid-framework/

rapid-framework v1.0.2 ChangeLog



?

jar升级
????????? rapid-xsqlbuilder升级至v1.0.1,中括号[]默认自动进行toString()
modules/struts2修改
???????? struts/javacommon目录调整
???????? 增加ant任务文件build.xml,install-struts2命令可以快速将web框架切换至struts2
模板修改
??????? template/other/java_hibernate_xml调整目录,增加${subpackage}
??????? struts2 的${className}Action.java实现Preparable接口
文档
?????? 关键位置增加文档说明及目录增加相关readme说明


rapid-framework介绍


基于spring,struts(struts2),hibernate的web项目脚手架

一个类似 ruby on rails 的java web快速开发脚手架,本着不重复发明轮子的原则,框架只是将零散的struts(struts2)+spring+hibernate各个组件组装好在一起,并对struts及struts2进行改造,提供零配置编程,并内置一个强大的代码生成器及模板文件, 可以生成java的hibernat model,dao,manager,struts+struts2 action类,可以生成jsp的增删改查及列表页面





[Property] outRoot=d:/webapp-generator-output
[Property] subpackage=system
[Property] basepackage_dir=com/kingsoft
[Property] jdbc.schema=
[Property] jdbc.password=pass
[Property] hibernate_id_generator=increment
[Property] basepackage=com.kingsoft
[Property] jdbc.url=jdbc:mysql://localhost:3306/test
[Property] jdbc.catalog=
[Property] jdbc.driver=com.mysql.jdbc.Driver
[Property] jdbc.username=root

[Delete Dir]d:/webapp-generator-output
jdbc.schema=null jdbc.catalog=null
***************************************************************
* BEGIN generate table:blog
***************************************************************
[generate] template:insert_demo\i18n.properties to insert_demo\i18n.properties
[generate] template:insert_demo\spring-service.xml to insert_demo\spring-service.xml
[generate] template:java\${basepackage_dir}\${subpackage}\dao\${className}Dao.java to java\com/kingsoft\system\dao\BlogDao.java
[generate] template:java\${basepackage_dir}\${subpackage}\model\${className}.java to java\com/kingsoft\system\model\Blog.java
2008-8-27 16:08:13 freemarker.log.JDK14LoggerFactory$JDK14Logger error
严重:

on line 103, column 9 in java\${basepackage_dir}\${subpackage}\model\${className}.java generateConstructor not found.
The problematic instruction:
----------
==> user-directive generateConstructor [on line 103, column 9 in java\${basepackage_dir}\${subpackage}\model\${className}.java]
in user-directive generateCompositeIdConstructorIfis [on line 35, column 9 in java\${basepackage_dir}\${subpackage}\model\${className}.java]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: on line 103, column 9 in java\${basepackage_dir}\${subpackage}\model\${className}.java generateConstructor not found.
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:134)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.IfBlock.accept(IfBlock.java:82)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.Macro$Context.runMacro(Macro.java:164)
at freemarker.core.Environment.visit(Environment.java:601)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.Environment.process(Environment.java:188)
at freemarker.template.Template.process(Template.java:237)
at generator.Generator.saveNewOutputFileContent(Generator.java:169)
at generator.Generator.generateFile(Generator.java:113)
at generator.Generator.generateTable(Generator.java:89)
at generator.Generator.generateTable(Generator.java:49)
at generator.GeneratorMain.main(GeneratorMain.java:13)
java.lang.RuntimeException: generate table 'blog' oucur error,template is:java\${basepackage_dir}\${subpackage}\model\${className}.java
at generator.Generator.generateTable(Generator.java:91)
at generator.Generator.generateTable(Generator.java:49)
at generator.GeneratorMain.main(GeneratorMain.java:13)
Caused by: freemarker.core.InvalidReferenceException: on line 103, column 9 in java\${basepackage_dir}\${subpackage}\model\${className}.java generateConstructor not found.
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:134)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.IfBlock.accept(IfBlock.java:82)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.Macro$Context.runMacro(Macro.java:164)
at freemarker.core.Environment.visit(Environment.java:601)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.Environment.process(Environment.java:188)
at freemarker.template.Template.process(Template.java:237)
at generator.Generator.saveNewOutputFileContent(Generator.java:169)
at generator.Generator.generateFile(Generator.java:113)
at generator.Generator.generateTable(Generator.java:89)
... 2 more
Exception in thread "main" 7 楼 badqiu 2008-09-26   你的这个问题是没有主键 8 楼 louiscai 2008-11-21   我想问一下,我在使用中,结合mysql都没有问题,但是结合oracle的表时,我发现oracle的主键不是自增的,这块我项目中怎样配置?然后数据库需要建触发器吗?
非常着急,谢谢!!

热点排行