<!-- 配置Action -->
<bean name="UserAction" class="com.liao.web.UserAction" scope="prototype" >
<property name="uService" ref="uService"></property>
</bean>
<!-- 配置Service -->
<bean name="uService" class="com.liao.service.UserService">
<property name="uDao" ref="UserDao"></property>
</bean>
上面这个是对的
为什么下面这个是错的呢??
<!-- 配置Action -->
<bean name="UserAction" class="com.liao.web.UserAction" scope="prototype" >
<property name="uService" ref="userService"></property>
</bean>
<!-- 配置Service -->
<bean name="userService" class="com.liao.service.UserService">
<property name="uDao" ref="UserDao"></property>
</bean>
我的UserAction里面是
private UserService uService;
为什么呢??????