Spring batch autowire bean in writer not working by configuring it via job java based configuration
问题 I have to autowire an object to my writer class of spring batch job. This has to be specific for job ( job scope ) I am trying to configure it my spring batch job java configuration calss and use it by autowire fashion from my writer class. But this seems to be not working and I always gets this bean as null from my writer class. What am I doing wrong. My Job configuration class snippet : @org.springframework.context.annotation.Configuration @EnableBatchProcessing @Component public class