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可以

4.2.5.RELEASE

2.2.5.RELEASE

你可能感兴趣的:(2019-06-06 异常: Exception in thread "main" java.lang.IllegalArgumentException: Cannot instantiate...)