Java表现层开发框架 jdonmvc

fmms 12年前

框架特点:

1,简单优雅,无需任何附加配置文件,大量的使用约定。
2,默认使用Jdon框架为域模型管理层,遵循在不损失分层架构优势的前提下提高开发效率。
3,业务层可支持Spring
4,Restful URL导航,支持JSR311 RS API。
5,开发坐标:REST + DCI + DDD + CQRS。伸缩性优先和艺术化编码。
6,框架代码严格遵守OO设计原则,并完全通过findbugs的检查。

框架已在一世界500强企业内使用。
案例代码请到下载页面,也可以直接check代码并用maven打包。

代码演示(1):

        @Path("/user/{userId}")          @GET          public Represent user(Long userId) {                  User user = userQueryService.getUser(userId);                  return new Html("/editUser.ctl", "user", user);          }

代码演示(2):

        @POST          @Path("/singleupload")          public Represent upload(FormFile file) {                  return new Text("你上传了单个文件,文件名是:"+file.getFileName());          }                    @POST          @Path("/mutiupload")          public Represent upload(List<FormFile> files) {                  return new Text("你上传了多个文件,文件数量是:"+files.size());          }

代码演示(3):

        public class UserCommondHandler {                       @In("userRepository")                     private Repository<User,Long,UserCreate> userRepository;                            @In("userQueryService")             private UserQueryService userQueryService;                       private @Context Validation validation;         }

项目主页:http://www.open-open.com/lib/view/home/1334736371108