在Spring配置文件中,已经存在id为userDao的Bean,通过property注入到业务逻辑层的userDao属性时,(

在Spring配置文件中,已经存在id为userDao的Bean,通过property注入到业务逻辑层的userDao属性时,()是正确的?

A.<property name=”userDao” class=”userDao”></property>

B.<property name=”userDao” value=”userDao”></property>

C.<property name=”userDao” id=”userDao”></property>

D.<property name=”userDao” ref=”userDao”></property>

正确答案是D