Skip to content

Tag: spring-annotations

Why am I obtaining this error trying to start multiple Spring Batch Jobs? The bean ‘jobLauncher’….could not be registerd

I am working on a Spring Batch application containing two different Job bean (representing two different jobs). Both these jobs must be performed by my application (at the moment it can be done both sequentially and in parallel. It is not so important at the moment). In order to achieve this behavior I am trying to follow this documentation but

Is it necessary to use @Configuration while working with spring annotations

I am working with a simple spring application to check @Configuration and @Bean(java based configuartion only),The program is working with both @Configuration and without it.So is it necessary to have it. Here is my code, The output is same with or without the @Configuration Even tried with autowiring,it is also working without @Configuration Answer