admin管理员组

文章数量:1654340

Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.itheima.repository.CommentRepository. 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.

 

大概意思就是spring redis不知道你的repository类是给Redis的还是数据库的,log输出很烦人,可以通过在配置文件中配置spring.data.redis.repositories.enabled = false来解决

 

本文标签: safelyidentifyRedisSpringData