可能重复:
通过 spring .net 配置静态类的属性
我想使用 spring .net 在静态类中注入属性的值。代码片段:
Public static Abc
{
Public static IInterface IInterface{get;set;}
}
在这里,我想通过 spring .net 配置在 Abc staic 类中注入 IInterface 值。
可能重复:
通过 spring .net 配置静态类的属性
我想使用 spring .net 在静态类中注入属性的值。代码片段:
Public static Abc
{
Public static IInterface IInterface{get;set;}
}
在这里,我想通过 spring .net 配置在 Abc staic 类中注入 IInterface 值。