关于spring的依赖注入 谢谢了
墙角在唱歌 2012-02-06 10:32:14
<!-- 1.注入DAO -->
<bean id="stuDao" class="com.ssh.dao.impl.StuImpl" autowire="byName"/>
<!-- 2.注入Service -->
<bean id="stubiz" class="com.ssh.biz.impl.Stubizimpl" autowire="byName"/>
<!-- 3.注入Action -->
<bean id="stuAction" class="com.ssh.action.StuAction" autowire="byName"/>
在spring 的配置文件中 采用autowire自动装配 对 bean中的id有什么要求吗?