Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
coderqianlq opened this issue Oct 2, 2018 · 0 comments
Open

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

coderqianlq opened this issue Oct 2, 2018 · 0 comments

Comments

@coderqianlq
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant