blog.voina.org
Voina Blog (a tech warrior's blog) #SpringBoot : How to create multiple instances of the same Spring Bean type. #Java
Spring Boot assumes that all the created beans are singletons. That works OK for 90% of the cases when Spring Boot is used but sometimes we need several instances of the same bean type. One example…