配置mybatis后,启动,发现抛出如下异常:
Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias 'uaMap'. Cause: java.lang.ClassNotFoundException: Cannot find class: uaMap
原因:将resultMap写成了resultType,Type对应的是对象类,所以抛出ClassNotFoundException的异常,mybatis的结果是存放在resultMap中的。
<select id="find" resultMap="uaMap">
select * from user u,account a where u.aid=a.aid
<select>