锁定老帖子 主题:flamingo生成工程过程解析
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2008-08-20
最后修改:2008-12-12
1、在DOS模式下随便选择一个你的文件夹,输入"flamingo create project"。 在运行Maven2调用com.exadel.flamingo.maven.plugin 插件后, 系统会提示你l"Please choose the type of application to generate (flamingo-seam, flamingo-spring) [flamingo-seam]",选择你需要的程序类型。在方括号描述的是"FlamingoSDK.properties"文件默认的选择项,若想选择它们,只要按回车即可。
然后按下面预定的步骤进行就可以了。由于我没有研究过Seam,所以我只使用了Spring的方式,下面是Spring的配置。
Spring Configuration
步骤选择(蓝色为中文描述信息)
Please enter the location in which your new application will be created (i.e. c:/java/development):
Enter the project name (e.g. myproject): [myproject]
创建一个工程名,包括指定Pom.xml文件的artifactId里,在生成一个war或者ear 文件时也会要使用到它。
Please enter the root package name for your project(e.g. com.mydomain.myproject):[com.sample]
为所有的源文件指定一个包名,它包括Pom.xml文件的groupId,Flex和Java Web的 package名。
Will this project have Flex or JavaFX user interface? (flex, javafx): [flex]
Will this project use Hessian or AMF protocol? (amf, hessian): [amf]
What kind of database are you using? (hsql, mysql, oracle,postgres, mssql, db2, sybase, none): [hsql]
Enter the JDBC URL for your database (e.g. jdbc:hsqldb:.): [jdbc:hsqldb:.]
为你存在的数据库配置JDBC路径,如果你不是使用"hsql"数据库,请把相应的数据库driver jar包复制到web服务器的lib路径比如:Jboss --"jboss/server/default/lib"。
Enter database username: [sa]
输入数据库的用户名。
Enter database password: []
输入数据库的密码,没有密码,就重新设置。如果你直接按回车,系统将使用你上次创建的工程时使用的数据库密码。
Do you want to update the database schema each time you deploy? (y, n): [y]
Enter the entity class name (Flex source files to view and modify entities will be generated as well): [Person]
指定一个实体类名称并生成可显示和可编辑实体对象的示例代码,服务器端和客户端都会生成示例代码。
2、导航到目标工程的地址,仔细检查已构建完的工程。应用模块的结构在"readme.txt"文件中有详细的描述。 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |
浏览 2460 次