简体   繁体   English

Spring AMQP异常

[英]Spring AMQP Exceptions

It's my first question here in stackoverflow. 这是我在stackoverflow中的第一个问题。 I'm working in a project which involves Spring AMQP. 我正在一个涉及Spring AMQP的项目中工作。 For the development I found this tutorial: Spring AMQP Example 对于开发,我找到了本教程: Spring AMQP示例

When I run the ListenerContainer class, I get this exception: 当我运行ListenerContainer类时,出现以下异常:

  1. Caused by: org.springframework.amqp.AmqpIllegalStateException: No default listener method specified: Either specify a non-null value for the 'defaultListenerMethod' property or override the 'getListenerMethodName' method. 由以下原因引起:org.springframework.amqp.AmqpIllegalStateException:未指定默认的侦听器方法:为'defaultListenerMethod'属性指定一个非空值,或者重写'getListenerMethodName'方法。

I've been searching the solution but I can't solve it. 我一直在寻找解决方案,但无法解决。

If anyone can help me I'll be grateful. 如果有人可以帮助我,我将不胜感激。

I am not familiar with that blog post but it's using a very old (pre-release) version of Spring AMQP; 我不熟悉该博客文章,但是它使用的是非常旧的(预发行版)Spring AMQP版本; the current release version is 1.4.3 . 当前的发行版本是1.4.3 The blog post itself is nearly 5 years old. 该博客文章本身已有近5年历史了。

You should use the project's own documentation which references the samples supported by the project. 您应该使用项目自己的文档 ,该文档引用项目支持的样本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM