id和name都是为bean指定唯一一个名称。
区别:
id:不能指定特殊字符
name:可以指定特殊字符
<bean id = "personService" class = "com.zhen.service.impl.PersonServiceBean" />
<bean name = "/personService" class = "com.zhen.service.impl.PersonServiceBean" />
id和name都是为bean指定唯一一个名称。
区别:
id:不能指定特殊字符
name:可以指定特殊字符
<bean id = "personService" class = "com.zhen.service.impl.PersonServiceBean" />
<bean name = "/personService" class = "com.zhen.service.impl.PersonServiceBean" />