2019-06-06 异常: Exception in thread "main" java.lang.IllegalArgumentException: Cannot instantiate......

abnormal:

Exception in thread "main" java.lang.IllegalArgumentException: Cannot instantiate interface org.springframework.context.ApplicationListener : org.springframework.boot.logging.ClasspathLoggingApplicationListener

。。。。。。

Caused by: java.lang.NoClassDefFoundError: org/springframework/context/event/GenericApplicationListener

solution:

This problem may be due to the Spring due to the low version, upgrade version spring. Affinity can be measured 4.2.5.RELEASE

<org.springframework.version>4.2.5.RELEASE</org.springframework.version>

<org.springframework.version>2.2.5.RELEASE</org.springframework.version>

Reproduced in: https: //www.jianshu.com/p/9eec8c839bb2

Guess you like

Origin blog.csdn.net/weixin_34409822/article/details/91103081