SpringBoot2.1.4+Mybatis+PageHelper整合
SpringBoot2.1.4+Mybatis+PageHelper整合。Mybatis通过*.yml来配置,通过注解方式实现,无XML。PageHelper的整合写了两种方式,一种是通过Aop拦截Mapper,代码量少;一种是服务接口的实现,容易理解。
SpringBoot2.1.4+Mybatis+PageHelper整合。Mybatis通过*.yml来配置,通过注解方式实现,无XML。PageHelper的整合写了两种方式,一种是通过Aop拦截Mapper,代码量少;一种是服务接口的实现,容易理解。