whitek 发表于 2017-12-24 12:41:24

Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias

<?xml version="1.0" encoding="UTF-8" ?>  
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  
<mapper namespace="com.quelongjiang.mybatis.dao.UserTypeHandlerDao">
  <resultMap type="com.quelongjiang.mybatis.model.UserTypeHandlerModel">
  <result property="uthm_id" column="uthm_id"/>
  <result property="uthm_name" column="uthm_name"/>
  <result property="uthm_describe" column="uthm_describe"/>
  <result property="uthm_user" column="uthm_user"
  typeHandler="com.quelongjiang.springSecurity.mybatis.typeHandler.NewUserTypeHandler"/>
  <result property="uthm_createTime" column="uthm_createTime"/>
  </resultMap>
  <insert>
  insert into sys_usertypehandlermodel(uthm_id , uthm_name , uthm_describe , uthm_user , uthm_createTime)
  values(#{uthm_id} ,
  #{uthm_name} ,
  #{uthm_describe} ,
  #{uthm_user , typeHandler="com.quelongjiang.springSecurity.mybatis.typeHandler.NewUserTypeHandler"} ,
  #{uthm_createTime})
  </insert>
  <insert>
  insert into sys_usertypehandlermodel(uthm_id , uthm_name , uthm_describe , uthm_user , uthm_createTime) values
  <foreach collection="list" item="item" separator=",">
  (#{item.uthm_id} ,
  #{item.uthm_name} ,
  #{item.uthm_describe} ,
  #{item.uthm_user , typeHandler=com.quelongjiang.springSecurity.mybatis.typeHandler.NewUserTypeHandler} ,
  #{item.uthm_createTime})
  </foreach>
  </insert>
  
</mapper>
页: [1]
查看完整版本: Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias