Open quote is expected for attribute "property" associated with an element type "result".

tomcat服务器启动的时候报的错误

 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'faqFormService' defined in file [D:\soft\tomcat5.5-rcmt\webapps\rcmt\WEB-INF\classes\META-INF\spring\rcmt-message-srvc.xml]: Cannot create inner bean 'uhr.rcmt.message.srvc.FAQFormService#1aedbde' of type [uhr.rcmt.message.srvc.FAQFormService] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'uhr.rcmt.message.srvc.FAQFormService#1aedbde' defined in file [D:\soft\tomcat5.5-rcmt\webapps\rcmt\WEB-INF\classes\META-INF\spring\rcmt-message-srvc.xml]: Cannot resolve reference to bean 'faqDao' while setting bean property 'faqDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'faqDao' defined in file [D:\soft\tomcat5.5-rcmt\webapps\rcmt\WEB-INF\classes\META-INF\spring\rcmt-message-dao.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in file [D:\soft\tomcat5.5-rcmt\webapps\rcmt\WEB-INF\classes\META-INF\spring\common-sqlMap.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Error occurred.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: org.xml.sax.SAXParseException: Open quote is expected for attribute "property" associated with an  element type  "result".

一大堆,但是真正有用就是最后一句,因为是最后一句引发前面的一系列问题!

Open quote is expected for attribute "property" associated with an  element type  "result".


查了很久,sqlMapConfig、sping xml等配置文件,最终在ibatis的数据库配置文件上找到问题了

错误写法:
<result column="WOR_RESUME_TANGENT_SCALE_" property=resumeTangentScale />

正确写法

<result column="WOR_RESUME_TANGENT_SCALE_" property="resumeTangentScale" />

我在property中少了双引号!

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 7
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值