【发布时间】:2017-06-08 04:07:32
【问题描述】:
遵循春季指南Centralized configuration
今天(2017 年 1 月 27 日),spring-boot 应用程序在启动时崩溃
java.lang.ClassNotFoundException: org.springframework.context.event.GenericApplicationListener
我认为原因是依赖管理的 BOM 在版本 Angel.SR4 中是指 spring-cloud-starter-parent 而在版本 中父项目是 spring-boot-starter-parent >1.4.3.RELEASE.
Angel.SR4 已经很老了,仍然指的是旧版本的 Spring-Boot,它与 spring-boot-starter-parent 的版本冲突。
将 Angel.SR4 替换为 Camden.SR4 解决了该问题。
是我遗漏了什么还是春季指南中的问题?
【问题讨论】:
-
你应该把它作为一个错误提交给 spring,这样他们就可以确定它是否是一个真正的错误。
-
确实,看起来像一个错误。请为此打开一个问题:github.com/spring-guides/gs-centralized-configuration/issues/…