Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Error: No qualifying bean of type org.springframework.boot.info.BuildProperties

Tags:

spring-boot

I have a project with spring-web. But it isn't a spring-boot project. When I run the project, I get an error: No qualifying bean of type org.springframework.boot.info.BuildProperties. How can I solve it?

like image 406
52herz Avatar asked Mar 24 '26 05:03

52herz


2 Answers

See if adding the below to your pom.xml (assuming it's a maven project) helps.

<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>
like image 77
Janani Avatar answered Mar 25 '26 20:03

Janani


If you already have build-info goal in your pom.xml and you are trying to run your project from Intellij or another IDE, you might face this issue.

The solution is to simply run mvn package which will generate the build-info.properties needed for the startup.

like image 25
Faisal Khan Avatar answered Mar 25 '26 22:03

Faisal Khan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!