Concurrency in Spring

1. The apache-commons tool class is either stateless or the state must be static. These are requirements from the concurrency perspective.
2. The beans in spring use singletons by default (unless scope="prototype" is declared when they are defined), stateless ones can be used directly, and stateful ones are implemented by combining the support of ThreadLocal.
3.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325515705&siteId=291194637