org.springframework.web.context.support.XmlWebApplicationContext.refresh Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'user_service' defined in class path resource [META-INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'recordDao' of bean class [com.jixiang.service.impl.UserServiceImpl]: Bean property 'recordDao' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

28-Dec-2017 13:48:46.127 严重 [RMI TCP Connection(2)-127.0.0.1] org.springframework.web.context.ContextLoader.initWebApplicationContext Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'user_service' defined in class path resource [META-INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'recordDao' ofbean class [com.jixiang.service.impl.UserServiceImpl]:Bean property 'recordDao' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1568)
意思就是在com.jixiang.service.impl.UserServiceImpl这个类中没有找到recordDao,或者没有recordDao的setter方法。
但是你在Spring的applicationContext.xml配置中又加入了这个配置
p:mangerDao-ref="managerDao"
p:userDao-ref="userDao"
p:recordDao-ref="recordDao"
/>class="com.jixiang.service.impl.UserServiceImpl"
parent="managerTemplate"/>
。
创新互联www.cdcxhl.cn,专业提供香港、美国云服务器,动态BGP最优骨干路由自动选择,持续稳定高效的网络助力业务部署。公司持有工信部办法的idc、isp许可证, 机房独有T级流量清洗系统配攻击溯源,准确进行流量调度,确保服务器高可用性。佳节活动现已开启,新人活动云服务器买多久送多久。
分享标题:j2EE编写时易错问题。-创新互联
标题链接:http://yantingwz.cn/article/discjc.html
其他资讯
- php$_get报错的解决方法-创新互联
- ansible架构原理及工作流程-创新互联
- 如何对cname域名解析?cname域名如何记录?
- 登录免费注册网址有哪些软件
- react如何在linux上部署
- Android中自定义SeekBar如何实现分段显示不同背景颜色
- 【Chrome插件 Chrome extension 】报错 Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
- 微信公众号ios开发 微信公众号开发程序
- win10进不去系统怎么恢复出厂设置怎么操作?windows10重置系统
- 深入理解Linux线程同步机制(线程同步linux)


咨询
建站咨询
