Does spring bean provide thread safety?
Answer / Yamuna Kumar Nirala
By default, Spring Beans are not thread-safe. However, you can configure beans to be singleton (single instance per Spring container) to ensure thread safety. If a bean is marked as @Singleton, multiple threads will use the same instance, thus sharing state.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why do we use @override?
Is spring boot better than spring? : Spring Boot
What is init method in spring?
What are the components in bean definition?
What is pojo model?
What are the types of the transaction management that is supported by spring?
What is the current version of spring?
What is @componentscan in spring?
Can we learn spring boot without knowing spring? : Spring Boot
Explain the different types of spring container?
What is a spring framework?
What is portlet context in spring?