zoukankan      html  css  js  c++  java
  • Mybatis 错误:Error parsing Mapper XML. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias

    mybatismapperAdminMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Admin'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Admin]
    

    ResultType要写全类名,不然会被作为Mybatis的Alias 。 使用了MybatisGenerator 可以使用resultMap="BaseResultMap" 自定做了封装

    <select id="selectAdminByLoginAcct" resultMap="BaseResultMap">
      select id, login_acct, user_pswd, user_name, email, create_time from t_admin where
      login_acct = #{loginAcct}
    </select>
    
    
  • 相关阅读:
    开发趋势
    常用的meta
    meta基础
    HTTP请求方法GET和POST
    same-origin policy----wikipedia
    跨域——同源策略(译)
    DNS问答
    TCP/IP的整理
    鉴权方法
    Web攻击技术---OWASP top
  • 原文地址:https://www.cnblogs.com/land-fill/p/13453361.html
Copyright © 2011-2022 走看看