【问题标题】:spring boot classnotfound org.springframework.boot.Bootstrapper while staring applicationspring boot classnotfound org.springframework.boot.Bootstrapper 同时盯着应用程序
【发布时间】:2021-01-27 10:15:10
【问题描述】:

我刚刚使用 https://dzone.com/articles/spring-boot-microservices-building-microservices-a 中提到的 eureka 服务器启动了一个 spring boot 项目,而运行项目时遇到异常并且应用程序已停止。

java.lang.ClassNotFoundException: org.springframework.boot.Bootstrapper

我正在使用带有 springboot 2.3.5.RELEASE 版本的 Gradle。

有没有人帮助我为什么会看到这个错误。

【问题讨论】:

  • 你拼错了 Bootstrapper?
  • 看起来您的 gradle 设置不一致/正常工作:缺少或冲突的(spring-boot)依赖项(?)

标签: java spring-boot


【解决方案1】:

SpringBoot starter web 2.3.5.RELEASE 与 spring-cloud-starter-netflix-eureka-server:3.0.0 之间存在冲突

更换 SpringBoot starter web 2.4.2 后,一切正常。

【讨论】:

    【解决方案2】:

    使用更新的依赖项创建一个新项目并将此版本复制并添加到您的项目中

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-03-08
      • 2017-09-19
      • 2020-05-23
      • 2018-11-08
      • 2019-12-19
      • 2019-08-31
      • 2016-03-08
      相关资源
      最近更新 更多