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 metadata提取的PDF元数据,如何转换为一个Excel
  • ¥15 关于arduino编程toCharArray()函数的使用
  • ¥100 vc++混合CEF采用CLR方式编译报错
  • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?
  • ¥15 vite+vue3+plyr播放本地public文件夹下视频无法加载
  • ¥15 c#逐行读取txt文本,但是每一行里面数据之间空格数量不同
  • ¥50 如何openEuler 22.03上安装配置drbd
  • ¥20 ING91680C BLE5.3 芯片怎么实现串口收发数据
  • ¥15 无线连接树莓派,无法执行update,如何解决?(相关搜索:软件下载)
  • ¥15 Windows11, backspace, enter, space键失灵