什么是Spring云服务版本与Sping Boot 2.7.11版本兼容?

jexiocij  于 5个月前  发布在  Spring
关注(0)|答案(1)|浏览(66)

我正在开发一个spring Boot 应用程序。我使用的是最新版本的spring Boot (2.7.11)for Java 8。我已经添加了所有逻辑,但无法正确启动应用程序。
问题是,当我试图运行Spring Boot 应用程序时,它说:

Correct the classpath of your application so that it contains compatible versions of the classes org.springframework.cloud.bootstrap.BootstrapApplicationListener and org.springframework.boot.builder.SpringApplicationBuilder

字符串
在pom.xml文件中,

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.7.11</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
<properties>
        <java.version>1.8</java.version>
        <spring-cloud-services.version>      </spring-cloud-services.version>
        <spring-cloud.version>               </spring-cloud.version>
    </properties>

的数据
我相信如果我正确地输入了正确的spring-cloud-services.version和spring-cloud.version,应用程序将运行。但是对于Sping Boot 版本2.7.11,上面的正确版本号是多少?

5f0d552i

5f0d552i1#

<properties>
        <java.version>1.8</java.version>
        <spring-cloud.version>2021.0.3</spring-cloud.version>
</properties>

字符串

相关问题