Reputation: 26549
Hi, I have a project that works fine (mvn clean install
and running).
However, intelli-J is complaining that there is an issue with the autowiring of a datasource:
Could not autowire. There is more than one bean of
DataSource
type.
It seems however, that the actual beans themselves are part of the spring infrastructure.
Any ideas?
Upvotes: 0
Views: 110
Reputation: 2000
As you can read
Could not autowire. There is more than one bean of DataSourcetype.
more than one bean are in your application context. In that case, you can specify explicitly which one you want to autowire with @Qualifier("nameOfNeededBean")
. It's obviously an intellij issue.
Upvotes: 1