在applicationContext.xml中配置Service层时 name Tag ‘property’ must have a ‘name’ attribute 出错的问题
抛出异常 Error creating bean with name ‘userService’ defined in class path resource [applicationContext.xml]: Error setting property values
<!-- Service层 -->
<bean id="userService" class="org.ssh.service.impl.UserService">
<property name="" ref="userDao"></property>
</bean>
在org.ssh.service.impl.UserService 类中没有实例化类后 生成对应的get/set方法,就会找不到,生成后再填写name就不会出现错误了。