There is no result map named seatCache.SeatInfo in this SqlMap

来源:互联网 发布:2016淘宝可以刷单吗 编辑:程序博客网 时间:2024/04/30 09:59
<typeAlias alias="SeatInfo" type="app.bussiness.domain.SeatInfo"/>

<select id="getTrainSellCtrlRule" resultMap="SeatInfo"  >

报错 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/select'.  Cause: com.ibatis.sqlmap.client.SqlMapException: There is no result map named seatCache.SeatInfo in this SqlMap.

原因是resulMap不对,应该是resultClass,粗心啊

0 0
原创粉丝点击