No qualifying bean of type [org.apache.solr.client.solrj.SolrServer] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
How is this error caused? how to solve
1. The configuration file feels right
2. I also have written notes
3. The package name is checked and there is no error.
Stunned, I re-wrote the project, ok!