Error creating context 'spring.root': root context is currently in creation. You must not call ContextRegistry.GetContext() from e.g. constructors of your singleton objects
IApplicationContext iac = ContextRegistry.GetContext();使用这句代码的时候报上面的错误,配置文件使用的是例程里面的配置文件,请问大神该如何解决
当前正在创建根上下文,你不应该从你单例对象的构造函数中调用contextregistry.getcontext()