'Getting dependency error as The following method did not exist: org.springframework.integration.dsl.IntegrationFlows.fromSupplier

An attempt was made to call a method that does not exist. The attempt was made from the following location:

org.springframework.cloud.stream.function.FunctionConfiguration.integrationFlowFromProvidedSupplier(FunctionConfiguration.java:314)

The following method did not exist:

org.springframework.integration.dsl.IntegrationFlows.fromSupplier(Ljava/util/function/Supplier;Ljava/util/function/Consumer;)Lorg/springframework/integration/dsl/IntegrationFlowBuilder;

The method's class, org.springframework.integration.dsl.IntegrationFlows, is available from the following locations:

jar:file:/C:/Users/x/.m2/repository/org/springframework/integration/spring-integration-core/5.3.1.RELEASE/spring-integration-core-5.3.1.RELEASE.jar!/org/springframework/integration/dsl/IntegrationFlows.class

The class hierarchy was loaded from the following locations:

org.springframework.integration.dsl.IntegrationFlows: file:/C:/Users/x/.m2/repository/org/springframework/integration/spring-integration-core/5.3.1.RELEASE/spring-integration-core-5.3.1.RELEASE.jar

Action: Correct the classpath of your application so that it contains a single, compatible version of org.springframework.integration.dsl.IntegrationFlows



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source