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?
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>
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With