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();使用这句代码的时候报上面的错误,配置文件使用的是例程里面的配置文件,请问大神该如何解决