mybatis\mapper\AdminMapper.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 >
  select id, login_acct, user_pswd, user_name, email, create_time from t_admin where
  login_acct = #{loginAcct}
</select>

相关文章:

  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2021-07-29
猜你喜欢
  • 2021-12-29
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
相关资源
相似解决方案