codecentric/spring-boot-starter-batch-web

Get this warn twice while running any job, reproducable running simple batch example, should it be ignored?

naveendahiya opened this issue · 1 comments

BeanFactoryPostProcessor interface. This will result in a failure to process annotations such as @Autowired, @resource and @PostConstruct within the method's declaring @configuration class. Add the '
static' modifier to this method to avoid these container lifecycle issues; see @bean Javadoc for complete details
2014-11-24 00:31:44.152 WARN 3412 --- [ main] o.s.c.a.ConfigurationClassEnhancer : @bean method ScopeConfiguration.jobScope is non-static and returns an object assignable to Spring's
BeanFactoryPostProcessor interface. This will result in a failure to process annotations such as @Autowired, @resource and @PostConstruct within the method's declaring @configuration class. Add the 's
tatic' modifier to this method to avoid these container lifecycle issues; see @bean Javadoc for complete details

Yes, can be ignored. It always happens when using Java configuration in Spring Batch: https://jira.spring.io/browse/BATCH-2161. Still, it's only a warning and doesn't affect any functionality.