简体   繁体   English

Spring 启动:java.lang.AbstractMethodError:接收器类 org.springframework.jms.config.JmsListenerEndpointRegistry

[英]Spring boot : java.lang.AbstractMethodError: Receiver class org.springframework.jms.config.JmsListenerEndpointRegistry

Getting below error while running spring boot application :运行 spring boot 应用程序时出现以下错误:

java.lang.AbstractMethodError: Receiver class org.springframework.jms.config.JmsListenerEndpointRegistry does not define or inherit an implementation of the resolved method abstract isAutoStartup()Z of interface org.springframework.context.SmartLifecycle.
    at org.springframework.context.support.DefaultLifecycleProcessor.lambda$startBeans$0(DefaultLifecycleProcessor.java:144) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]
    at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:684) ~[na:na]
    at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:143) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]
    at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:122) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:883) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:163) ~[spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) ~[spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) ~[spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:386) ~[spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) ~[spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1242) ~[spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1230) ~[spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]

Since your class implements SmartLifecycle interface you need to define all the methods of SmartLifecycle within your class.由于您的类实现了 SmartLifecycle 接口,因此您需要在类中定义 SmartLifecycle 的所有方法。

Refer Method Summary in this link : https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/context/SmartLifecycle.html请参阅此链接中的方法摘要: https : //docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/context/SmartLifecycle.html

对我来说,在构建、执行、部署中的 IntelliJ 设置中工作 -> 构建工具 -> Maven -> 导入以将生成的源文件夹设置为“不检测”

暂无
暂无

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

相关问题 Spring引导JMS Listener - org.springframework.jms.config.JmsListenerEndpointRegistry.isAutoStartup()Z - Spring boot JMS Listener - org.springframework.jms.config.JmsListenerEndpointRegistry.isAutoStartup()Z java.lang.AbstractMethodError:接收器类 io.cucumber.testng - java.lang.AbstractMethodError: Receiver class io.cucumber.testng Spring,AWS,访问远程DB:java.lang.AbstractMethodError:null org.springframework.core.OrderComparator.findOrder(OrderComparator.java:142) - Spring, AWS, access remote DB: java.lang.AbstractMethodError: null at org.springframework.core.OrderComparator.findOrder(OrderComparator.java:142) Spring Boot:筛选器执行引发异常-java.lang.AbstractMethodError - Spring Boot: Filter execution threw an exception - java.lang.AbstractMethodError Selenium chrome driver error java.lang.AbstractMethodError: Receiver class org.openqa.selenium.chrome.ChromeDriverService$Builder does not define - Selenium chrome driver error java.lang.AbstractMethodError: Receiver class org.openqa.selenium.chrome.ChromeDriverService$Builder does not define 线程“main”中的异常 java.lang.AbstractMethodError:接收器类 org.openqa.selenium.chrome.ChromeOptions 未使用 Selenium 定义错误 - Exception in thread "main" java.lang.AbstractMethodError: Receiver class org.openqa.selenium.chrome.ChromeOptions does not define error using Selenium 春季安全java.lang.AbstractMethodError - spring security java.lang.AbstractMethodError Spring MVC:java.lang.AbstractMethodError - Spring mvc: java.lang.AbstractMethodError java.lang.AbstractMethodError:org.jboss.arquillian.config.descriptor.impl.EngineDefImpl.getDeploymentExportExploded()Ljava / lang / Boolean; - java.lang.AbstractMethodError: org.jboss.arquillian.config.descriptor.impl.EngineDefImpl.getDeploymentExportExploded()Ljava/lang/Boolean; java.lang.AbstractMethodError - java.lang.AbstractMethodError
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM