摘要:
在Spring2.5中使用Annotation注解进行注入: 在使用注解进行注入的时候需要设置配置文件的schema: <?xml version="1.0" encodi... 阅读全文
摘要:
依赖注入(IOC DI)依赖注入的两种方式:1. set注入Spring要求使用set注入方式的时候,Bean需要提供一个无参数的构造方法。并提供一个属性的setter方法。例如: package com.kay.bean; public class UserServices { private UserBean ub; public void setUb(UserBean ub) { this.... 阅读全文