I'm using Eclipse and maven for building.
I have a SpringBoot project that were working perfectly fine for 2 or 3 years.
And today, after trying to start my project, I have this problem :
2021-01-27 15:22:47.974 WARN 24416 --- [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'statusConfiguration': Unsatisfied dependency expressed through field 'buildProperties'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.boot.info.BuildProperties' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
This error leads to (the entry point of my controller/program):
Field buildProperties in com.mypackage.configuration.StatusConfiguration required a bean of type 'org.springframework.boot.info.BuildProperties' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
What can be the problem ?
- I have cleaned up my project
- I have deleted all my maven repository (if a library was not correctly downloaded)
No problem is displayed in the problem view of Eclipse.
I manage to reach the BuildProperties from my code when editing my class.
question from:
https://stackoverflow.com/questions/65921496/org-springframework-boot-info-buildproperties-that-could-not-be-found 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…