摘要:使用Spring2.5的Autowired实现注释型的IOC使用Spring2.5的新特性——Autowired可以实现快速的自动注入,而无需在xml文档里面添加bean的声明,大大减少了xml文档的维护。(偶喜欢这个功能,因为偶对xml不感冒)。以下是一个例子:先编写接口Man:publicint...
阅读全文
posted @ 2014-10-30 15:21
posted @ 2014-10-30 15:21