Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
937 views
in Technique[技术] by (71.8m points)

org.springframework.boot.info.BuildProperties that could not be found

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...