Skip to content

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

Description

@liyue1997

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 到

静不下心去一个个排查

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