使用mybatis,spring,mvc时,报以下错误:
Could not resolve type alias 'TableFancy'. Cause: java.lang.ClassNotFoundException: Cannot find class: TableFancy
原因可能是配置文件中类名写错了,如下:
<resultMap id="showTableFancyPagePnMap" type="TableFancy"> <!--Fancy 是com.zc.model.Fancy的别名 -->
TableFancy 应该写为 Fancy
<resultMap id="showFancyPagePnMap" type="Fancy"> <!--Fancy 是com.zc.model.Fancy的别名 -->
万恶题解决。