Thread-independent means that each thread will not be allocated an instance, or the generation of instances has nothing to do with threads. But thread independence does not mean thread safety. Thread safety needs to be done by yourself
Single instance beans are all stateless, so why do thread conflicts arise? If you use a stateful bean as a single instance, there is something wrong with your own logic
Thread-independent means that each thread will not be allocated an instance, or the generation of instances has nothing to do with threads. But thread independence does not mean thread safety. Thread safety needs to be done by yourself
Single instance beans are all stateless, so why do thread conflicts arise? If you use a stateful bean as a single instance, there is something wrong with your own logic
This sentence is incomplete, singleton + stateless can be thread safe