thread里有 threadlocal
ThreadLocal.ThreadLocalMap threadLocals
/* ThreadLocal values pertaining to this thread. This map is maintained
* by the ThreadLocal class. */
ThreadLocal.ThreadLocalMap threadLocals = null
threadlocal get(thread)
其实就是获得这个线程里自己的Localmap
/**
* Get the map associated with a ThreadLocal. Overridden in
* InheritableThreadLocal.
*
* @param t the current thread
* @return the map
*/
ThreadLocalMap getMap(Thread t) {
return t.threadLocals;
}
ThreadLocalMap 里面有table
ThreadLocalMap 里面有table
redistemplate execute
redisconnectionutils doGetConnection
TransactionSynchronizationManager 资源管理类
ResourceHolder 资源接口
DataSourceTransactionManager 数据源管理类也使用了TransactionSynchronizationManager
BeanFactory
AutowireCapableBeanFactory
SingletonBeanRegistry DefaultSingletonBeanRegistry