请问Mybatis plus 有类似jpa的ExampleMatcher查询吗

请问Mybatis plus 有类似jpa的ExampleMatcher查询吗

  @PostMapping("/list")
    public Object list(AdminRole adminRole,
                        @RequestParam(required = false, defaultValue = "0") int pageNumber,
                        @RequestParam(required = false, defaultValue = "10") int pageSize) {

            //创建匹配器,需要查询条件请修改此处代码
            ExampleMatcher matcher = ExampleMatcher.matchingAll();

            //创建实例
            Example<AdminRole> example = Example.of(adminRole, matcher);
            //分页构造
            Pageable pageable = PageRequest.of(pageNumber,pageSize);

            return adminRoleRepository.findAll(example, pageable);
    }


ExampleMatcher Mybatis plus

可以使用QueryWapper来设置条件查询

mp 有QueryWapper 也有分页查询page