首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >org.springframework.messaging.converter.AbstractMessageConverter.<init>([Lorg/springframework/util/MimeType;)V春季云流

org.springframework.messaging.converter.AbstractMessageConverter.<init>([Lorg/springframework/util/MimeType;)V春季云流
EN

Stack Overflow用户
提问于 2021-03-05 14:04:54
回答 1查看 184关注 0票数 0

当我简单地从:https://github.com/schacko-samples/s1p-2019-scst-kafka-talk/tree/master/hello-streams-application运行代码时,我得到了下面的错误。

代码语言:javascript
复制
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-03-05 11:29:56.783 ERROR 24712 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

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

    org.springframework.cloud.function.context.config.JsonMessageConverter.<init>(JsonMessageConverter.java:47)

The following method did not exist:

    org.springframework.messaging.converter.AbstractMessageConverter.<init>([Lorg/springframework/util/MimeType;)V

The method's class, org.springframework.messaging.converter.AbstractMessageConverter, is available from the following locations:

    jar:file:/C:/Users/user/.m2/repository/org/springframework/spring-messaging/5.2.0.RELEASE/spring-messaging-5.2.0.RELEASE.jar!/org/springframework/messaging/converter/AbstractMessageConverter.class

It was loaded from the following location:

    file:/C:/Users/user/.m2/repository/org/springframework/spring-messaging/5.2.0.RELEASE/spring-messaging-5.2.0.RELEASE.jar


Action:

Correct the classpath of your application so that it contains a single, compatible version of org.springframework.messaging.converter.AbstractMessageConverter
EN

回答 1

Stack Overflow用户

发布于 2021-03-05 22:20:35

看起来您在类路径上有错误的(不匹配的)spring消息版本。该方法是在Spring Framework 5.2.2中添加的。

我看到该项目的pom正在使用快照。

我认为Hoxton在SR5前后从Boot2.2切换到了2.3。

在pom中,尝试将Boot starter更改为2.3.9.RELEASE,将Hoxton版本更改为Hoxton.SR10

如果这不起作用,可以尝试Boot2.2.13.RELEASE和Hoxton.SR4。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66487601

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档