2015年6月13日

摘要: 1.首先上客户端代码staticvoidMain(string[]args){IApplicationContextctx=ContextRegistry.GetContext(); Console.WriteLine("事件注册");Doordoor=(Door)ctx.GetObjec... 阅读全文
posted @ 2015-06-13 20:36 听哥哥的话 阅读(221) 评论(0) 推荐(0)
摘要: 1.首先上客户端代码staticvoidMain(string[]args){IApplicationContextctx=ContextRegistry.GetContext();Console.WriteLine("替换方法");UserDaodao=(UserDao)ctx.GetObject... 阅读全文
posted @ 2015-06-13 20:25 听哥哥的话 阅读(173) 评论(0) 推荐(0)
摘要: //这里是客户端的代码 当调用CreatePersonDao这个抽象方法或者虚方法的时候由配置文件返回指定的实例为查询的方法注入某个实例 startstaticvoidMain(string[]args){IApplicationContextctx=ContextRegistry.GetConte... 阅读全文
posted @ 2015-06-13 20:13 听哥哥的话 阅读(338) 评论(0) 推荐(0)
摘要: 1.引入程序集Spring.Core,CommonLogging,Spring.Web2.Web.Config的配置 BLL.XML3. 客户端调用部分IApplicationContext ctx = ContextRegistry.G... 阅读全文
posted @ 2015-06-13 18:20 听哥哥的话 阅读(153) 评论(0) 推荐(0)

导航