1 year ago

#321657

test-img

Aaina Arora

Spring Bean Scopes Step Scope and Singleton

Can someone explain what would happen if I declared a bean of step scope (used during batch processing) and the same bean of scope singleton to be used for another purpose (api calling).

   <bean id="sdlExcelFileProcessor" class="ms.rs.batch.SDLExcelFileProcessor" scope="step">
   <bean id="sdlExcelFileProcessor1" class="ms.rs.batch.SDLExcelFileProcessor" scope="singleton">

spring

spring-batch

spring-framework-beans

0 Answers

Your Answer

Accepted video resources