appFuse2.x第二篇

Tutorials for AppFuse 2.x are a work in progress. To develop an application with AppFuse, you generally create POJOs and configure how they work with Spring. Follow the steps below to create a master/detail screens that CRUD a Person object. You should create a project using the QuickStart Guide and setup your development environment before starting these tutorials.

  1. Create a Person Entity.
  2. Create a PersonDao in Hibernate, iBATIS or JPA.
  3. Create a PersonManager to act as a service facade to PersonDao.
  4. Create the web tier using JSF, Struts 2, Spring MVC or Tapestry.

Where's the source?
One of the most commonly asked questions about AppFuse 2.x is where's the source? If you'd like to convert your project so it doesn't rely on AppFuse dependencies and includes AppFuse's source instead, run mvn appfuse:full-source. This feature is only available in 2.0 M5+ and currently only works with basic archetypes.

CRUD Generation
AppFuse has a Maven Plugin that allows you to generate all the code in these tutorials. However, we recommend you complete these tutorials before using it so you're familiar with all the code that's being generated.

One of the nice features of AppFuse 2.x is you no longer need to create a DAO or Manager for type-safe CRUD functionality. You merely need to create Spring bean definitions. This means you should be able to easily develop a front-end without worrying about writing code for the backend (until you need customized functionality of course).

Having trouble choosing a web framework?
If you're having trouble choosing a web framework, read What Web Application framework should you use? and Java Web Framework Sweet Spots. More information on comparing web frameworks can be found at https://appfuse-light.dev.java.net/framework-comparison.
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值