Menelaos
Menelaos

Reputation: 26549

False could not auto wire Intelli-J error

Problem

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 DataSourcetype.

It seems however, that the actual beans themselves are part of the spring infrastructure.

Any ideas?

Screenshots

enter image description here

enter image description here

Upvotes: 0

Views: 110

Answers (1)

Roman T
Roman T

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

Related Questions