JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

springboot集成redis时总报错Connection refused: no further information: localhost/127.0.0.1:6379

发布时间 2023-04-24 14:00:48作者: 醉逍遥_001

nacos上配置的关于redis的key值不是springboot需要的固定写法如:

sping.redis.host=

spring.redis.port=

sping.redis.password=

spring.redis.database=

我写的是一个自定义的key如 com.dream.redis.host
改为springboot认识的即可
其他和springboot集成的组件类似,切记
    本栏目推荐文章
  • A connection was successfully established with the server but then an error
  • 基于融合语义信息改进的内容推荐算法。Improved content recommendation algorithm integrating semantic information.
  • web项目启动时dubbo报错: No provider available for the service com.davidhu.shopguide.api.service.UserEventService from the url zookeeper ://localhost:2181/org.apache.du
  • 蚂蚁爱购--靠谱的SpringBoot项目
  • 在Windows上出现"localhost拒绝连接”的问题
  • 实时数据流无忧:用 SpringBoot 和 SSE 打造动态前端更新的终极指南
  • scp 出现 subsystem request failed on channel 0 scp: Connection closed 的解决方法
  • springBoot(基础部分)
  • SpringBoot配置报错:Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class
  • 40 个 SpringBoot 常用注解:让生产力爆表!
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们