首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >org.springframework.jms.config.JmsListenerEndpointRegistry boot : java.lang.AbstractMethodError: Receiver类Spring

org.springframework.jms.config.JmsListenerEndpointRegistry boot : java.lang.AbstractMethodError: Receiver类Spring
EN

Stack Overflow用户
提问于 2019-02-01 19:46:11
回答 2查看 5.8K关注 0票数 3

运行spring boot应用程序时出现以下错误:

代码语言:javascript
复制
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]
EN

回答 2

Stack Overflow用户

发布于 2019-02-01 20:01:05

因为您的类实现了SmartLifecycle接口,所以您需要在类中定义SmartLifecycle的所有方法。

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

票数 0
EN

Stack Overflow用户

发布于 2019-11-07 17:20:45

对于我来说,我使用了Build,Executions,Deployment -> Build Tools -> Maven -> Importing中的IntelliJ设置,以便将Generated sources文件夹设置为‘不要检测’

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

https://stackoverflow.com/questions/54478847

复制
相关文章

相似问题

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