摘要: http://hi.baidu.com/menglinxi_a/item/8e5d7f726605cd11d1dcb330———————————————————————————————————————————————————— 最近在工作上用上了Command模式,但在Spring上使用Command模式由于不能在代码中直接使用new,否则就不能使用其他配置在Spring中的DAO,所以需要把Command配置到Spring中。以下是一个<?xml version="1.0" encoding="UTF-8"?><beans xmlns 阅读全文
posted @ 2012-09-07 13:46 网络大豆 阅读(340) 评论(0) 推荐(0)
摘要: http://hi.baidu.com/black_zhu/item/4da962862965f1eae596e0d4————————————————————————————————————————————————————————Spring框架下获取Bean的几种方式 通过xml配置文件 bean配置在xml里面,spring提供多种方式读取配置文件得到ApplicationContext.第一种方式:FileSystemXmlApplicationContext通过程序在初始化的时候,导入Bean配置文件,然后得到Bean实例:ApplicationContext ac = new... 阅读全文
posted @ 2012-09-07 10:16 网络大豆 阅读(307) 评论(0) 推荐(0)