【错误日志】springframework.core.CollectionFactory.createConcurrentMapIfPossible(I)Ljava/util/Map和PageHelper失效
Spring的相关jar包缺失,在服务方的service模块没有引入SpringMVC导致; 在使用PageHelper时发现分页失效 @Override public PageInfo<GoodsDetail> queryInfo( Integer pageNum, Integer pageSize, Integer sortId) { List<GoodsDetail> list = goodsDetailMapper.queryInfo(sortId); PageHelper.startPage(pageNum, pageSize); PageInfo<GoodsDetail> pageInfo = new PageInfo<>(list); return pageInfo; } 错误原因:分页必须在查询结果后面 @Override public PageInfo<GoodsDetail> queryInfo( Integer pageNum, Integer pageSize, Integer sortId) { PageHelper.startPage(pageNum, pageSize); List<GoodsDetail> list = goodsDetailMapper.queryInfo(sortId); PageInfo<GoodsDetail>