Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
w9931125 opened this issue Aug 15, 2024 · 2 comments
Open

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

w9931125 opened this issue Aug 15, 2024 · 2 comments

Comments

@w9931125
Copy link

建议增加的新功能:

查看了官网的文档两种集成方法: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服务是分开的,所以打包上复杂了一点,但如果后续两个服务都需要这个功能,只能舍弃框架进行大改,真心希望早点集成,感谢团队

@click33
Copy link
Collaborator

click33 commented Aug 15, 2024

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

@w9931125
Copy link
Author

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants