1:写配置文件
/*****/ /*****/ 2:提示 在提示文件中 打到 "命名空间名" 加到 第一步以是配置好了的! 3:用 3.1:创建上下文---在表现层的控制器中 IApplicationContext ctx = Spring.Context.Support.ContextRegistry.GetContext(); IBLL.配置中类的接口 bll = ctx.GetObject("ID") as IBLL.配置中类的接口; 3.2:例子 IBLL.IPersonable personbll = ctx.GetObject("ID") as IBLL.IPersonable;