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条)

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题