Is Singleton bean thread safe?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Works at FinTech Innovations, Lives in Frankfurt, Germany.
Spring singleton beans are NOT thread-safe just because Spring instantiates them. Sorry. Spring just manage the life cycle of singleton bean and maintains single instance of object. Thread safety has nothing to do with it.
2023-05-10 04:46:33
评论(499)
Helpful(122)
Helpful
Helpful(2)

Henry Morgan
QuesHub.com delivers expert answers and knowledge to you.
Spring singleton beans are NOT thread-safe just because Spring instantiates them. Sorry. Spring just manage the life cycle of singleton bean and maintains single instance of object. Thread safety has nothing to do with it.