Value type error for spring injection


I create a DataSource using the Spring MethodInvokingFactoryBean, When i reference the bean by its id IDEA complains that the ref is of the wrong type, namely the FactoryBean. Shouldn't it reference the object returned by the call, namely the DataSource?

1 comment

Please report at with the small sample to reproduce.


Please sign in to leave a comment.