在scoring-depth过滤器中,使用以下代码,以确保正确更新最大深度:
int newDepth = <新的最大深度>; int curDepth = page.getDepth(); if (newDepth > curDepth) { page.setDepth(newDepth); }
这会将新的最大深度与当前页面的深度进行比较。如果新深度大于当前深度,则将最大深度设置为新深度。
上一篇:Apache-NiFi的putSQS处理器失败 - 给出了请求中找不到MessageGroupId参数。
下一篇:apache-poi 4.0 出现空指针异常,无法设置系列标题。