spring+springmvc+mybatis整合springmvc
第一步:整合dao层 mybatis和spring整合,通过spring管理mapper接口。 使用mapper扫描器自动扫描mapper接口在spring中进行注册。 第二步:整合service层 通过spring管理service接口。 使用配置方式将service接口配置在spring配置文件中。 实现事务控制。 第三步:整合springmvc 由于springmvc是spring模块,不需要整合。 springmvc 第一步:web.xml中,配置前段控制器 第二步:springmvc.xml配置(适…