Decoupling the service definition from the business logic (controller) and from access to the data (entity) ensures that no business logic manifests itself in the entities.
将服务定义同业务逻辑(控制器)以及数据(实体)访问分离,可确保实体中不会透露任何业务逻辑。
Spring 2.5 adds two new annotations - @Service and @Controller - to complete the role designations for a common three-tier architecture (data access objects, services, and web controllers).
在此基础上,Spring2.5又加入了两个新的注解 —— @Service和@Controller来完成为通常的三层架构(数据访问对象、服务、web控制器)角色委任。
Spring 2.5 adds two new annotations - @Service and @Controller - to complete the role designations for a common three-tier architecture (data access objects, services, and web controllers).
在此基础上,Spring2.5又加入了两个新的注解 —— @Service和@Controller来完成为通常的三层架构(数据访问对象、服务、web控制器)角色委任。
应用推荐