mybatisplus QueryWrapper 添加limit 其实是在sql的最后加上 limit 相关的语句。 QueryWrapper wrapper = new QueryWrapper<>(); wrapper.last("limit 1");