Spring Boot And Multi-Module Maven Projects
The repositories are scanned automatically from the package of your application class (the one annotated with @EnableAutoConfiguration
). If that default does not suit you, you can easily fallback on @EnableJpaRepositories
with the relevant packages.
I can see com.example.data
and com.example.text
. I guess you might have a project specific package as com.example
is probably too broad. So one way to fix that would be to put your application in com.example
(or whatever the root package of your app is).
Check also the doc