用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,求大神解答,很急,在线等
3条回答 默认 最新
- qq_32924265 2016-01-05 16:49关注
这是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>
解决 无用评论 打赏 举报
悬赏问题
- ¥20 关于#硬件工程#的问题,请各位专家解答!
- ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
- ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
- ¥30 截图中的mathematics程序转换成matlab
- ¥15 动力学代码报错,维度不匹配
- ¥15 Power query添加列问题
- ¥50 Kubernetes&Fission&Eleasticsearch
- ¥15 報錯:Person is not mapped,如何解決?
- ¥15 c++头文件不能识别CDialog
- ¥15 Excel发现不可读取的内容