Spring Data Redis - Could not safely identify store assignment for repositor

文章目录

  • Spring Data Redis - Could not safely identify store assignment for repositor
          • 1、触发
          • 2、解决

Spring Data Redis - Could not safely identify store assignment for repositor


1、触发

1、使用了Spring data jpa 作为持久层框架
2、使用了Spring Redis 缓存

2、解决
# 关闭spring data 的redis仓库即可
spring:
    data:
      redis:
        repositories:
          enabled: false

你可能感兴趣的:(框架相关,-,SpringBoot体系)