spring问题,急!!!Property 'sqlMapClient' is required

用Struts2+spring做项目时,在Tomcat上部署运行出现org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registerService' defined in file [C:\Users\mac\jeeworkspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\myweb\WEB-INF\classes\applicationContent-service.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlMapClient' is required,求大神解答,很急,在线等

这是Content-service.xml

<?xml version="1.0" encoding="UTF-8"?>
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

<bean id="loginService" class="com.login.service.impl.LoginServiceImpl">
    <property name="userDao">
        <ref bean="userDao"/>
    </property>
</bean>

<bean id="personService" class="com.login.service.impl.PersonServiceImpl">
    <property name="personDao">
        <ref bean="personDao"/>
    </property>
</bean>

<bean id="registerService" class="com.login.service.impl.RegisterServiceImpl">
    <property name="userDao">
        <ref bean="userDao"/>
    </property>
</bean>


你的registerService的配置中没有sqlMapClient属性的配置,添加上试试。

你看看你的sqlMapClient 配置好了没。