1、 从 http://jakarta.apache.org/turbine/download.html 下载 turbine-2.3.2-src.tar.gz
2、 解压,进入turbine源码路径执行:
maven -g 获得所有必须的jar包
3、 安装编译turbine的插件
maven -DartifactId=maven-turbine-plugin -DgroupId=turbine -Dversion=1.3 plugin:download
4、 编译turbine源码,并打包执行:
maven
源码路径: turbine-2.3.2\src\java
5、 在 C:\Documents and Settings\Administrator\.maven\cache\maven-turbine-plugin-1.3\plugin.properties 文件中增加tomcat安装路径:
maven.appserver.home = D:\tomcat-5.5.17
6、 进入turbine源码路径,创建新的web应用框架:
maven -Dturbine.app.name=demoweb turbine:setup
7、 进入新产生的应用根目录,找到并修改setup.properties文件的以下部分:
torque.database = mysql
#torque.database.driver = org.gjt.mm.mysql.Driver
torque.database.driver = com.mysql.jdbc.Driver
torque.database.user = root
torque.database.password = root
torque.database.buildUrl = jdbc:mysql://localhost:3306/demoweb
#使用已经存在的数据库建立连接
torque.database.createUrl = jdbc:mysql://localhost:3306/mysql?useUnicode=true&characterEncoding=UTF-8
说明:该步骤在turbine-2.3.2根目录创建一个新的目录demoweb ,并拷贝基础文件
8、根据默认的schema生成建表脚本和om对象:
maven turbine:sql
9、建立应用的数据库,如果是正在使用的系统不能操作该步骤,防止将已经存在的数据库删除:
maven torque:create-db
10、执行sql建立表
maven torque:insert-sql
11、将应用发布到容器中:
maven turbine:deploy
12、访问 http://localhost:8080/demoweb ,可以看到turbine欢迎页面
说明:
1)步骤 9和10可以省略,可以直接使用 8 产生的sql脚本自己创建数据库和相关表,以及初始化数据
分享到:
- 2006-10-09 12:57
- 浏览 2442
- 评论(0)
- 论坛回复 / 浏览 (0 / 3059)
- 查看更多
相关推荐
spring cloud turbine 源码解读
hystrix turbine 服务监控 服务降级
Hystrix-dashboard+turbine-web+说明文档,用于Hystrix项目的监控、多实例的聚合监控
turbine技术简介,关于turbine框架中技术的概述
Turbine项目介绍 Struts VS Turbine Turbine模块详述 Turbine工作机制
turbine-2.2.jar turbine-2.2.jar
pdf介绍matlab/simulink中风力发电的各模块的功能和连接方式,比较实用
Wind Turbine Control Systems book Principles
Turbine入门介绍,喜欢的请下
Axial Turbine Flow Path Design
wind_turbine_simulink绝对的使用,适合入门,提高,分享给大家,仅供参考
This simulation shows gas micro turbine.
modeling wind turbine
Matlab Simulink 风力发电机仿真模型Wind_Turbine_Model
Turbine Tutorial Turbine Tutorial
spring cloud里turbine的相关学习代码,了解turbine里path问题的解决
Turbine是一个以servlet为基础的Web Application Framework,是一个开发Web Application的工具,致力于解决一些在软件开发中重复出现的问题。这个Framework使有经验的Java开发者快速建立安全的Web Application成为...
当Velocity应用于web开发时,界面设计人员可以和java程序开发人员同步开发一个遵循MVC架构的web站点,也就是说,页面设计人员可以只 关注页面的显示效果,而由java程序开发人员关注业务逻辑编码。Velocity将java...
turbine wind simulation
gas turbine fuzzy identification