not exist:org.springframework.kafka.listener.AbstractMessageListenerContaingetContainerProperties()

Programmer base 2021-10-14 04:33:21

The error information is as follows :

 Insert picture description here

answer :

The reason for the problem is jar Package version , This means in org.springframework.cloud.sleuth This package calls
org.springframework.kafka.listener.AbstractMessageListrenerContainer Of getContainerProperties() This method , Then this method is in the dependent spring-kafka Not in the bag . My solution is to change spring-cloud The version of the package .
Use the current springboot Version of spring-cloud(springcloud Version from Finchley.SR2 Change into Greenwich.RELEASE)

Please bring the original link to reprint ,thank
Similar articles