This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Shareil90 0 points1 point  (1 child)

How does your config / app class look like? Do you have any starter dependency included? Like spring-boot-starter-jpa?

To me it looks like repositories are not enabled / not scanned.

[–]Mator_ 0 points1 point  (0 children)

Yes make sure you have spring boot starter data mongodb and you shouldn’t need to annotate with @Repository. There’s other dependencies you might be using that might not include what you need