java.lang.IllegalArgumentException: No field annotated with interface org.springframework.data.annotation.Id found!

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

If you're unit testing, you should instantiate only the service and mock the dependencies. If you're testing integration, you should add all the mocking to the configurations file.

Solutions on the web

via GitHub by neilstevenson
, 1 year ago
No field annotated with interface org.springframework.data.annotation.Id found!
via GitHub by neilstevenson
, 1 year ago
No field annotated with interface org.springframework.data.annotation.Id found!
via GitHub by vikas-parihar
, 1 year ago
Attribute 'repositoryBaseClass' not found
via apache.org by Unknown author, 1 year ago
java.lang.IllegalArgumentException: No field annotated with interface org.springframework.data.annotation.Id found!
at org.springframework.data.repository.core.support.ReflectionEntityInformation.(ReflectionEntityInformation.java:72)

Users with the same issue

Once, 11 months ago
2 times, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.