Spring处理循环依赖只使用二级缓存可以吗?(二)
我还是把上面的例子改进一下,改成用3级缓存的实现publicinterfaceObjectFactory<T>{TgetObject();}publicclassDependencyDemoV3{privatestaticfinalMap<String,Object>singletonObjectsnewHashMap<>(256);privatestaticfinalMap<String,Object>earlySingletonObjectsnewHashMap<>(256);privatestaticfinalMap<String,ObjectFactory<>>singletonFactoriesnewHashMap<>(256);SneakyThrowspublicstatic<T>TgetBean(Class<T>beanCl...