Sa-Token icon indicating copy to clipboard operation
Sa-Token copied to clipboard

框架集成redis的时候使用redis-om-spring包

Open w9931125 opened this issue 1 year ago • 2 comments

建议增加的新功能:

查看了官网的文档两种集成方法:sa-token-redis和sa-token-redis-jackson 都是集成的spring-boot-starter-data-redis 希望有个能直接集成redis-om-spring的包

应用场景阐述:

我使用的springboot3.3版本的,很多需要redis更高级的功能(redisSearch)然而如果两个都使用springboot3启动会报错 Parameter 0 of method redisTemplate in com.redis.om.spring.RedisModulesConfiguration required a bean of type 'org.springframework.data.redis.connection.jedis.JedisConnectionFactory' that could not be found.

< 备注:请尽量详细描述功能应用场景 > 如果我在配置JedisConnectionFactory作为bean,在原有的基础上的RedisTemplate会导致循环依赖。 目前还好A、B服务是分开的,所以打包上复杂了一点,但如果后续两个服务都需要这个功能,只能舍弃框架进行大改,真心希望早点集成,感谢团队

w9931125 avatar Aug 15 '24 08:08 w9931125

你看这里有没有符合你需要的包 https://sa-token.cc/doc.html#/plugin/dao-extend

click33 avatar Aug 15 '24 08:08 click33

你看这里有没有符合你需要的包 https://sa-token.cc/doc.html#/plugin/dao-extend

没有 是下面这个 https://mvnrepository.com/artifact/com.redis.om/redis-om-spring

w9931125 avatar Aug 15 '24 08:08 w9931125