Spring FactoryBean Support

已回答

I have this annoying problem that IntelliJ doesn't think factory beans are injectable.  There were some comments about this dating back to 2007 (IDEA-11397) but I don't see any clear solution.  The symptom is a warning:

    "Could not autowire.  No beans of XxxFactory could be found."

In fact, the class being injected is a @Component that implements FactoryBean<Xxx>.  The code works fine; it's just this annoying warning that won't go away.  In the Spring Face you can't add it, because it's not a @Configuration it's just a @Component.

Anybody have any thoughts on this?

0

Is it possible to provide sample proejct example for investigation?

0

请先登录再写评论。