Caused by: java.lang.NoClassDefFoundError: org/springframework/context/event/GenericApplicationListe
程序员文章站
2022-04-12 18:00:56
...
Exception in thread “main” java.lang.IllegalArgumentException: Cannot instantiate interface org.springframework.context.ApplicationListener : org.springframework.boot.logging.ClasspathLoggingApplicationListener
出现这个错误很有可能是父工程没有
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.9.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
上一篇: 趣谈架构演进
推荐阅读
-
java.lang.NoClassDefFoundError: org/springframework/web/context/request/async/CallableProcessingInte
-
Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
-
Caused by: java.lang.NoClassDefFoundError: org/springframework/context/event/GenericApplicationListe
-
Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]