admin管理员组文章数量:1130349
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来解决
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
版权声明:本文标题:Spring Data Redis - Could not safely identify store assignment for repository candidate interface 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/jiaocheng/1763734245a2958742.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论