<!-- 这是书写SQL语句的文件xml,也叫实体类映射文件 --><resultMapid="bookMap"type="book"><resultcolumn="bname"property="bookName"/></resultMap><selectid="selectById2"parameterType="book"resultMap="bookMap"resultType="cn.mall.entity.Book">
select * from book where id = #{id}
</select>
### Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause:
org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'mappers/BookMapper.xml'.
Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.
TypeException: Could not resolve type alias 'book'.
Cause: java.lang.ClassNotFoundException: Cannot find class: book