配置文件:
读取并解析xml:
UserAction代码:
运行,控制台输出:
spring依赖注入原理的简单模拟
原文:http://www.cnblogs.com/eaglepan/p/6860319.html