Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 217 Vote(s) - 3.55 Average
  • 1
  • 2
  • 3
  • 4
  • 5
@Autowired - No qualifying bean of type found for dependency

#21
I've reproduced similar issue in multi-module project w/ `No qualifying bean of type` like:

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.example.stockclient.repository.StockPriceRepository' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

and the reason for this error was missing annotation `@EnableJpaRepositories` in my specific use case.

**To clarify:** this annotation needs to be added for enabling auto configuration support for `Spring Data JPA` required to know the path of `JPA` repositories. By default, it will scan only the main application package and its sub packages for detecting the `JPA` repositories.

For more details you can refer, for instance, to this [article][1].

[1]:

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through