标签:nat dao nal nbsp ice ppi nsa ati control
1. 对象
hibernate有@Table,并 implements Serializable;
mybaties 无注解,无继承、实现。
2.Dao 层
hibernate 使用dao接口 , 有sql 注解。
mybaties dao接口,需要Mapper.xml 。
3. Service
spring 有service接口,并在serviceImp上@Service/@Transactional。
spring 没有service接口,并在serviceImp上@Service/@Transactional。
4. 表现层
struts2 的action , spring管理多例。
springMVC 的controller基于方法的注解 @Controller,每个方法上@RequestMapping
标签:nat dao nal nbsp ice ppi nsa ati control
原文地址:https://www.cnblogs.com/mobaids/p/9382963.html