the problem:
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of constructor in com.config.SwaggerConfig required a bean of type 'org.springframework.boot.info.BuildProperties' that could not be found.
Action:
Consider defining a bean of type 'org.springframework.boot.info.BuildProperties' in your configuration.
I've already tried to fix it using solutions from here, but nothing helps me.
Also tried to change annotation @AllArgsConstructor instead of @RequiredArgsConstructor, but still the same issue appears.
Does anyone know how to fix this error? I can provide more information if needed. I appreciate any help.
The answer is here. The cause is: "Both the Maven plugin and the Gradle plugin allow generating build information containing the coordinates, name, and version of the project. The plugins can also be configured to add additional properties through configuration. When such a file is present, Spring Boot auto-configures a BuildProperties bean."
Обсуждают сегодня