Closed hasanli-orkhan closed 1 year ago
I need same solution? @Auther
I got same your problem. How can solve it?
I see this is a bit older but still... It looks like you need to add another configuration class to enable your other repositories, so from your example it should be something like:
@Configuration
@EnableJpaRepositories(basePackages = "info.md7.freelance.repos")
public class JpaConfiguration {
}
Hope this helps!
Can confirm this works just like johnnyboi91 mentioned
@Configuration
@EnableJpaRepositories(basePackages = "your.repository")
is enough, if you put it in your main class file, where your project launches.
@thiemt-armando thanks a lot for the feedback :+1:
I think we can close this now, please reopen if needed.
Hello, dear developer! Faced the following problem: After adding your library to your project and adding configuration, I get an error:
I tried this configs:
And get the same error... I want to initialize DataTablesRepositoryImpl only in the specified packages, but get exception for repos that are in the package info.md7.freelance.repos
How I can fix it?