没有保持查寻结果集合与new PageInfo的参数保持相同 List biLibraryBimMsgs = biLibraryBimMsgMapper.selectPage(); PageInfo PageInfo = new PageInfo<>(biLibraryBimMsgs); 代码演示