pom.xml
deptService.java
deptController.java
com.github.pagehelper 为5.1.10版本 使用PageInterceptor插件进行查询分页
一、用@Configuration加载spring
1.1、@Configuration配置spring并启动spring容器
1.2、@Configuration启动容器+@Bean注册Bean
或者配置mybaties-config分页插件
如果·com.github.pagehelper 为5.2.0版本及以上则如下即可