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
spring3微服务版本只能使用本机的redis #5902
Comments
你启动的是那个类 |
JeecgSystemCloudApplication |
启动的JeecgSystemCloudApplication,在ShiroConfig中的redisManager里打印了lettuceConnectionFactory.getHostName()。发现输出的是默认的localhost,而不是nacos中设置的jeecg-boot-redis |
nacos启动了吗,是没连上吧还是你本地host配置的不对 |
getHostName输出localhost就不对吧,正确的应该输出:jeecg-boot-redis |
spring boot 3的redis版本为spring.data.redis,而非spring.redis,请检查配置是否正确 |
厉害啊大神。感谢感谢。 |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
版本号:
spring3、微服务版本
前端版本:vue3版?还是 vue2版?
vue3
问题描述:
redis无法获取nacos中的配置,只能使用本地。以下为验证(nacos中配置的redis为:jeecg-boot-redis)
截图&代码:
友情提示(为了提高issue处理效率):
The text was updated successfully, but these errors were encountered: