gpt4 book ai didi

spring-boot - 获取错误 : No qualifying bean of type org. springframework.boot.info.BuildProperties

转载 作者:行者123 更新时间:2023-12-05 02:42:58 32 4
gpt4 key购买 nike

我有一个 spring-web 项目。但它不是一个 spring-boot 项目。当我运行该项目时,出现错误:No qualifying bean of type org.springframework.boot.info.BuildProperties。我该如何解决?

最佳答案

看看将以下内容添加到您的 pom.xml(假设它是一个 Maven 项目)是否有帮助。

<build>
<finalName>{NAME_YOUR_PROJECT}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>build-info</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

关于spring-boot - 获取错误 : No qualifying bean of type org. springframework.boot.info.BuildProperties,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67150784/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com