@EnableJpaRepositories(basePackages = {"com.ecommerce.core.repository.jpa"}) @EnableElasticsearchRepositories(basePackages= {"com.ecommerce.core.repository.elastic"}) @EnableRedisRepositories(basePackages = {"org.springframework.data.redis.connection.jedis"})
Since we are explicitly enabling the repositories on specific packages we can include this in the application.properties to avoid these errors:
spring.data.redis.repositories.enabled=false
We can do the same for the other repositories as well. If you encounter similar errors:
spring.data.elasticsearch.repositories.enabled=false spring.data.jpa.repositories.enabled=false