类中部分代码:
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'
ibatis错误,属性存在却报不存在的错误
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
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的大小写问题
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报