Advertisement

SpringBoot2.1+MybatisPlus+Pagehelper框架整合及其分页失效问题及解决方案

阅读量:

准入...

我开发了一个基于SpringBoot 2.1版本与MyBatisPlus+PageHelper工具整合的演示文例;该资源可通过以下链接获取:sb-mybatisplus-pagehelper-demo

此工程的整体配置相对简单,并包含了一些自定义模块的打包;这些模块无需额外配置即可使用;

然而本文的重点并非如此

在上述工程中集成Dubbo分布式服务后,在Service层未做任何修改的情况下

复制代码
 @RestController

    
 @RequestMapping("/test")
    
 public class TestController extends BaseController {
    
  
    
 	@Reference
    
 	private UserService userService;
    
  
    
 	@RequestMapping(value="/say", method=RequestMethod.GET)
    
 	public JSONResponse say() {
    
  
    
 		QueryWrapper<SysUser> wrapper = new QueryWrapper<>();
    
 		//wrapper.eq("user_id", "

全部评论 (0)

还没有任何评论哟~