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

SpringData 例子测试用例无法通过,Error creating bean with name 'basicRepository' #15

Open
liyue1997 opened this issue Aug 29, 2018 · 0 comments

Comments

@liyue1997
Copy link

Error creating bean with name 'basicRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Not a managed type: class java.lang.Object

不知道从那改起了,简单的检查了下
mysql user 表id 自动创建为int 不是 bigint(但要改,又涉及外建)
Repository 没有加 @repository 注解
也有可能是 entity 没有被scan 到

静不下心去一个个排查

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