Spring boot 运行报Cannot instantiate interface org.springframework.context.ApplicationListener 解决方法
发布时间:2018-02-01 13:52,
浏览次数:5214
, 标签:
Spring
boot
Cannot
instantiate
interface
org
springframework
context
ApplicationListener
最近在学习boot,跟着书上个进度,做到运行SpringBootApplication时,一直报如下异常
pom配置如下:
网上找了很多,也没有明确的解决方案,最后在https://stackoverflow.com/questions/47000066/cannot-instantiate-interface-org-springframework-context-applicationlistener-aft
帖子上得到启发,springframework应该用2.0以上的版本,我将springframework版本改为4.2.1
启动成功: