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版本及以上则如下即可

博客介绍了使用Spring和MyBatis进行开发时的相关配置。涉及pom.xml、deptService.java、deptController.java等文件,还提到使用com.github.pagehelper的PageInterceptor插件进行查询分页,介绍了用@Configuration加载spring的方式,以及不同版本下的分页配置方法。
5万+

被折叠的 条评论
为什么被折叠?



