Skip to content

通过注解的方式解决Mybatis别名问题时报错 #1

Description

@coderqianlq

在实体类上添加@alias注解进行别名,在项目启动时报错提示无法找到该类,如在User类上添加@alias("User")注解,在mapper中指定resultType="User",项目启动报无法找到User类(can't find class User)。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions