直接上代码,记录知识点: List<Long> catelogPath = categoryService.findCatelogPath(entity.getCatelogId()); Long[] paths = catelogPath.toArray(new Long[catelogPath.size()]);
直接上代码,记录知识点: List<Long> catelogPath = categoryService.findCatelogPath(entity.getCatelogId()); Long[] paths = catelogPath.toArray(new Long[catelogPath.size()]);