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

异常:

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

解决方案:

这个问题可能是由于Spring的版本低导致,升级spring版本。亲测到4.2.5.RELEASE可以

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

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

转载于:https://www.jianshu.com/p/9eec8c839bb2

猜你喜欢

转载自blog.csdn.net/weixin_34409822/article/details/91103081
今日推荐