Caused by: java.lang.ClassNotFoundException:
目录
Caused by: java.lang.ClassNotFoundException: org.springframework.context.event.GenericApplicationListener
spring-boot-dependencies:jar:2.1.9.RELEASE was not found
org.springframework.context.event.GenericApplicationListener
原因:
1.项目springboot2.1.9.RELEASE版本(5.1.10.RELEASE),底层包spring-context用的是4.1.2.RELEASE版本
解决方法一:
将底层jar的spring-context去掉,默认使用新版本,即可解决问题;
解决方法二:
加上
spring-boot-dependencies:jar:2.1.9.RELEASE was not found
把type和scope加进去即可