Closed as not planned
Description
Spring Data Redis - Could not safely identify store assignment for
repository candidate interface com.xxx.xxxx.api.mongodb.repository.ABCMongoRepository;
If you want this repository to be a Redis repository, consider annotating your entities
with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred),
or consider extending one of the following types with your repository:
org.springframework.data.keyvalue.repository.KeyValueRepository
Note:
- Getting this error for Mongo Repository classes only even though we have Postgres Repo as well
- These 2 annotations are already in place.
@EnableJpaRepositories(basePackages = "com.xxx.xxxx.repository")
@EnableMongoRepositories(basePackages = "com.xxx.xxxx.api.mongodb.repository") - Started getting this error when we introduced Redis as cache solution.
- It is failing only in azure AKS. in local even when we connected to azure cosmos it is working fine.
Can anyone pls suggest.
Metadata
Metadata
Assignees
Labels
No labels