pengdott 2012-12-25 09:19 采纳率: 75%
浏览 428
已采纳

ibatis错误,属性存在却报不存在的错误

类中部分代码:
private String sICustId;
public String getSICustId()
{ return sICustId; }
public void setSICustId(String sICustId)
{ this.sICustId = sICustId; }
配置文件部分代码:

TOMCAT启动报错:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in ServletContext resource [/WEB-INF/applicationContext.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: java.lang.RuntimeException: Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'sICustId' in class 'cn.co.newlife.application.crmAsManage.service.bean.AsVoucherBean'

  • 写回答

5条回答 默认 最新

  • microPAO 2012-12-25 10:25
    关注

    [code="java"]
    private String siCustId;
    public String getSiCustId()
    { return siCustId; }
    public void setSiCustId(String siCustId)
    { this.siCustId = siCustId; }
    [/code]

    [code="java"]


    [/code]

    应该是SI中i的大小写问题

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

报告相同问题?