0

当我尝试编译这个

    from(rule.getInput().getUrl()).
    log(LoggingLevel.INFO, "New incoming message, rule n°"+getRule().getId()).
    routeId(getId()).
    filter().method(rule, "verify").
    to(outputs);

我有一个构建错误:

MVN : C:\........\DynamicRouteBuilder.java:[38,33] cannot find symbol
MVN : symbol  : method to(java.lang.String[])

to(java.lang.String[])to(outputs)

但是如果我删除日志行:

        from(rule.getInput().getUrl()).
        //log(LoggingLevel.INFO, "New incoming message, rule n°"+getRule().getId()).
        routeId(getId()).
        filter().method(rule, "verify").
        to(outputs);

有用!

如果我在 filter() 和 to() 之间移动日志行,它也可以工作。

我不明白为什么。有什么线索吗?

4

0 回答 0