1.概述
选型以工业化大规模软件开发为原则,同时照顾轻量级快速开发的需求,Java版的约定大于配置的风格渐显。
2.库栈
JDK:JDK 5.0/6.0、 UTF-8.
IOC container:Spring 2.5.
ORM:Hibernate 3.3.
Web :Struts 2.1、JSP 2.0、JQuery 1.2.
Web Service:Apache CXF 2.1实现的JavaEE 5 JAX-WS 2.1/JAXB2.1规范.
Security: Spring Security 2.0.
3.层次说明
3.1 entity - 领域模型层
使用Sql first的开发模式,一般纯手工编写entity与极少量的JPA annotation (因为JPA向RoR学习的约定大于配置,annotation少得几不可见)
如果遇到复杂的一对多,多对多关系,可以用IDE从数据库逆向生成。
3.2 access - 资源访问层(可选)
资源访问层包括对数据库、JMS、外部的WebService等访问,不一定进行明确的分层。
如Service层会直接组合使用多个SimpleHibernateTemplate<T>来访问数据库(默认拥有CRUD函数),以Service类的静态变量来定义HQL语句。
3.3 service - 业务逻辑层
每个Service类以facade姿态负责一组业务逻辑。
用Spring的Service annoation定义Service类,无需在xml配置文件中定义。
用Spring的Transcation annotation定义事务。
3.4 web - Web MVC层
MVC框架使用Struts2。用CodeBehind+ZeroConfig 实现零配置文件。
View模板用JSP2.0 , 尽量使用纯html+JSP2.0 EL展示页面。
Javascript不使用Dojo、ExtJS这类完全widgets方案,只用JQuery的简单封装以及JQuery Plugin控件。
3.5 ws - WebService接口
使用Java first的开发模式,通过JSR181 annotation标注Web Service接口,用JAXB-2.0 annotation标注Java-XML Mapping。
用DTO类实现与外系统Entity的解耦,用WebServiceResult包裹返回结果。
3.6 Security - 安全控制
用户-角色-授权三层控制,使用Spring Security 拦截URL,使用Spirng Security的taglib 拦截页面内容。
分享到:
相关推荐
springside-3.2.2源码springside-3.2.2源码
springside
pom.xml配置 ...mvn install:install-file -DgroupId=org.springside -DartifactId=springside-core -Dversion=4.2.2.GA -Dfile=./springside-core-4.2.2.GA.jar -Dpackaging=jar -DgeneratePom=true
SpringSide4.0 Reference Manual 自己整理的官方文档,PDF格式,方便查阅,所有连接都已整理。
springside4
springside3.0.zip
SpringSide文档.chm。
springside开发全面讲解 springside集成了多项技术,不适合入门者学习,因此本资料也尽量从最简单最基础的讲起。
springside-core-4.3.0.jar 最新版springside-core的jar包
分享 江南白衣的 springside4 非常强大的Javaee 框架。 官网:http://www.springside.org.cn/ 代码:https://github.com/springside/springside4
springside3.3.4 使用方法 ssh整合 最流行的web框架 使用说明
springside示例quickstart的eclipse工程
Springside4 学习整理 Shiro 服务端验证
springside-core-4.1.0.GA的jar包,实际包含springside-core-4.1.0.GA以及springside-core-3.3.4.jar。
springside3-core-3.3.4.jar,springside的3.3.4版本。
springside-joddform-2.0.zip
最近公司要求高maven+springside管理项目,凑合学,总结了一下
SpringSide3.3.4安装部署,图文教程,入门手册
java开发依赖 springside-core-4.1.0.GA springside-core-4.1.0.GA.pom.lastUpdated
springside3文档资料收录 calvin,游侠