Is Spring @autowired not meant for non-singleton containers?
问题 I have a MyTask class which implements Runnable and there can be many such objects instantiated at any given moment. There are certain properties that I would like to autowire into MyTask class. But I think that if I mark MyTask with @Component then it will become a spring-managed singleton correct? That's not what I want, I need many independent instances of this class to be run by a TaskExecutor. So my question(s): a) Am I fundamentally wrong in my understanding of @Component annotation?