springBoot启动报错:
Cannot instantiate interface org.springframework.context.ApplicationListener : org.springframework.boot.system.ApplicationPidFileWriter

原因
项目中有两个boot的版本,一个高版本一个低版本,导致冲突.
解决方法
查看自己项目中导入的依赖里,是否包含其他版本的boot与自己pom.xml里的boot的版本冲突
项目启动时遇到ApplicationListener接口实例化错误,原因是存在两个不同版本的SpringBoot导致冲突。解决方法是检查并统一项目中所有依赖的SpringBoot版本,避免版本不一致造成的冲突。
springBoot启动报错:
Cannot instantiate interface org.springframework.context.ApplicationListener : org.springframework.boot.system.ApplicationPidFileWriter

原因
项目中有两个boot的版本,一个高版本一个低版本,导致冲突.
解决方法
查看自己项目中导入的依赖里,是否包含其他版本的boot与自己pom.xml里的boot的版本冲突
3331
3118
3万+
2403
6万+

被折叠的 条评论
为什么被折叠?