SpringData 例子测试用例无法通过,Error creating bean with name 'basicRepository'
liyue1997 opened this issue · comments
liyue1997 commented
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 到
静不下心去一个个排查