Lsetea 2016-12-05 11:20 采纳率: 100%
浏览 1146
已采纳

spring配置问题,坐等大神解决

严重: ServletContext startup failed due to errors
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'impl:tjProviderService' defined in file [D:\tomcat-6.3-rhm-tj\webapps\rhm-app\WEB-INF\classes\META-INF\configuration\rhm-tj-services.xml]: Cannot resolve reference to bean 'tjTjjlValidateService' while setting bean property 'tjTjjlValidateService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tjTjjlValidateService' defined in file [D:\tomcat-6.3-rhm-tj\webapps\rhm-app\WEB-INF\classes\META-INF\configuration\rhm-tj-services.xml]: Cannot resolve reference to bean 'tjTjdxService' while setting bean property 'tjTjdxService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tjTjdxService' defined in file [D:\tomcat-6.3-rhm-tj\webapps\rhm-app\WEB-INF\classes\META-INF\configuration\rhm-tj-services.xml]: Cannot resolve reference to bean 'TjjhServiceImplBean' while setting bean property 'tjjhService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'TjjhServiceImplBean' defined in file [D:\tomcat-6.3-rhm-tj\webapps\rhm-app\WEB-INF\classes\META-INF\configuration\rhm-ws-services.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'TjjhServiceImpl' of bean class [com.wadata.tj.service.impl.TjjhServiceImpl]: Bean property 'TjjhServiceImpl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tjTjjlValidateService' defined in file [D:\tomcat-6.3-rhm-tj\webapps\rhm-app\WEB-INF\classes\META-INF\configuration\rhm-tj-services.xml]: Cannot resolve reference to bean 'tjTjdxService' while setting bean property 'tjTjdxService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tjTjdxService' defined in file [D:\tomcat-6.3-rhm-tj\webapps\rhm-app\WEB-INF\classes\META-INF\configuration\rhm-tj-services.xml]: Cannot resolve reference to bean 'TjjhServiceImplBean' while setting bean property 'tjjhService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'TjjhServiceImplBean' defined in file [D:\tomcat-6.3-rhm-tj\webapps\rhm-app\WEB-INF\classes\META-INF\configuration\rhm-ws-services.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'TjjhServiceImpl' of bean class [com.wadata.tj.service.impl.TjjhServiceImpl]: Bean property 'TjjhServiceImpl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tjTjdxService' defined in file [D:\tomcat-6.3-rhm-tj\webapps\rhm-app\WEB-INF\classes\META-INF\configuration\rhm-tj-services.xml]: Cannot resolve reference to bean 'TjjhServiceImplBean' while setting bean property 'tjjhService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'TjjhServiceImplBean' defined in file [D:\tomcat-6.3-rhm-tj\webapps\rhm-app\WEB-INF\classes\META-INF\configuration\rhm-ws-services.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'TjjhServiceImpl' of bean class [com.wadata.tj.service.impl.TjjhServiceImpl]: Bean property 'TjjhServiceImpl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'TjjhServiceImplBean' defined in file [D:\tomcat-6.3-rhm-tj\webapps\rhm-app\WEB-INF\classes\META-INF\configuration\rhm-ws-services.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'TjjhServiceImpl' of bean class [com.wadata.tj.service.impl.TjjhServiceImpl]: Bean property 'TjjhServiceImpl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'TjjhServiceImpl' of bean class [com.wadata.tj.service.impl.TjjhServiceImpl]: Bean property 'TjjhServiceImpl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

配置文件如下:

<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">






























<bean id="tjtjjhService" class="com.wadata.rhm.v3.tj.busi.service.impl.TjTjjhServiceImpl" parent="baseService">
    <property name="commonService" ref="commonService" />
</bean>

<bean id="tjTjdxService" class="com.wadata.rhm.v3.tj.busi.service.impl.TjTjdxServiceImpl" parent="baseService">
    <property name="commonService" ref="commonService" />
    <property name="tjjhService" ref="TjjhServiceImplBean" />
</bean>

<bean id="tjTjjlValidateService" class="com.wadata.rhm.v3.tj.busi.service.impl.TjTjjlValidateServiceImpl" parent="baseService">
    <property name="tjMbService" ref="tjMbService" />
    <property name="tjXmzdService" ref="tjXmzdService" />
    <property name="tjTjdxService" ref="tjTjdxService" />
</bean>

  • 写回答

4条回答 默认 最新

  • zero_xu002 2016-12-05 17:23
    关注

    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd" >






    <!-- 是否去除自动生成的注释 true:是 : false:否 -->











    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥200 uniapp长期运行卡死问题解决
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
  • ¥15 乘性高斯噪声在深度学习网络中的应用
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集