Apache camel Camel 3.0-M2类中缺少方法建议:RoutedDefinition

Apache camel Camel 3.0-M2类中缺少方法建议:RoutedDefinition,apache-camel,Apache Camel,我发现,在旧版本的camel中,人们通常使用的方法是adviceWith,该方法位于类:routeddefinition——但在版本3.0 M2中,此方法不存在 org.apache.camel 这里没有 (二) 从问题来看,现在还不清楚你真正的问题是什么。 我猜想,您正在寻找骆驼3.0中与之相当的routedDefinition.adviceWith 在v3.0.0-M2中,这是您要查找的内容 驼峰3.0是一个主要的版本,与2.x相比,相当多的API已经发生了变化。 RouteDefin

我发现,在旧版本的camel中,人们通常使用的方法是
adviceWith
,该方法位于类:
routeddefinition
——但在版本3.0 M2中,此方法不存在


org.apache.camel

这里没有

(二)


从问题来看,现在还不清楚你真正的问题是什么。 我猜想,您正在寻找骆驼3.0中与之相当的
routedDefinition.adviceWith

在v3.0.0-M2中,这是您要查找的内容

驼峰3.0是一个主要的版本,与2.x相比,相当多的API已经发生了变化。
RouteDefinition.adviceWith
是驼峰3.7.4 RouteReader.adviceWith中的

中记录的此类情况之一
        <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-spring-boot</artifactId>
            <version>3.0.0-M2</version>
        </dependency>
        <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-swagger-java</artifactId>
            <version>3.0.0-M2</version>
            <!-- use the same version as your Camel core version -->
        </dependency>
        <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-rabbitmq</artifactId>
            <version>3.0.0-M2</version>
            <!-- use the same version as your Camel core version -->
        </dependency>