org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'org.springframework.amqp.rabbit.config.internalRabbitListenerAnnotationProcessor' 
defined in class path resource [org/springframework/amqp/rabbit/annotation/RabbitBootstrapConfiguration.class]:
 Bean instantiation via factory method failed; 
 nested exception is org.springframework.beans.BeanInstantiationException: F
 ailed to instantiate [org.springframework.amqp.rabbit.annotation.RabbitListenerAnnotationBeanPostProcessor]: 
 Factory method 'rabbitListenerAnnotationProcessor' threw exception;
 nested exception is java.lang.NoClassDefFoundError: org/springframework/messaging/handler/annotation/support/MessageHandlerMethodFactory

一大堆,不过最关键的是

java.lang.NoClassDefFoundError: org/springframework/messaging/handler/annotation/support/MessageHandlerMethodFactory

这个类没有找见

2.解决:

这个类是通过 spring boot 的web 模块导入的

所以直接在 gradle中  添加

implementation 'org.springframework.boot:spring-boot-starter-web'

即可

 

相关文章:

  • 2022-12-23
  • 2021-06-02
  • 2021-10-21
  • 2021-06-16
  • 2021-06-09
  • 2022-12-23
  • 2021-08-18
猜你喜欢
  • 2021-11-20
  • 2021-05-08
  • 2022-01-20
  • 2022-12-23
相关资源
相似解决方案