springboot中Error creating bean with name ‘keyExpiredListener‘ defined in f
看到这个bug,检查你的redis基本配置。
前几天遇到了这个bug,很崩溃…
找了半天是服务器的redis崩了,
换成自己的redis
它就可以正常跑了…
就很emo…
- Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'keyExpiredListener' defined in file : Invocation of init method failed; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 49.235.202.61:6379 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1778) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) at org.springframework.beans.factory.support.AbstractBeanFactory$$Lambda$129/1609116238.getObject(Unknown Source) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:845) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:742) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:389) at org.springframework.boot.SpringApplication.run(SpringApplication.java:311) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1213) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1202) at com.yujiankang.YujiankangApplication.main(YujiankangApplication.java:22) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) Caused by: org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 49.235.202.61:6379 at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getNativeConnection(LettuceConnectionFactory.java:1106) at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getConnection(LettuceConnectionFactory.java:1085) at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getSharedConnection(LettuceConnectionFactory.java:866) at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getConnection(LettuceConnectionFactory.java:341) at org.springframework.data.redis.listener.KeyspaceEventMessageListener.init(KeyspaceEventMessageListener.java:85) at org.springframework.data.redis.listener.KeyspaceEventMessageListener.afterPropertiesSet(KeyspaceEventMessageListener.java:137) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1837) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1774) ... 22 common frames omitted Caused by: io.lettuce.core.RedisConnectionException: Unable to connect to 49.235.202.61:6379 at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:78) at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:56) at io.lettuce.core.AbstractRedisClient.getConnection(AbstractRedisClient.java:235) at io.lettuce.core.RedisClient.connect(RedisClient.java:204) at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.lambda$getConnection$1(StandaloneConnectionProvider.java:113) at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider$$Lambda$559/192271669.get(Unknown Source) at java.util.Optional.orElseGet(Optional.java:267) at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.getConnection(StandaloneConnectionProvider.java:113) at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getNativeConnection(LettuceConnectionFactory.java:1104) ... 29 common frames omitted Caused by: io.netty.channel.ConnectTimeoutException: connection timed out: /49.235.202.61:6379 at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe$1.run(AbstractNioChannel.java:267) at io.netty.util.concurrent.PromiseTask$RunnableAdapter.call(PromiseTask.java:38) at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:127) at io.netty.util.concurrent.AbstractEventExecutor.safeExecute$$$capture(AbstractEventExecutor.java:163) at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java) at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:405) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:906) at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:745)
springboot中Error creating bean with name ‘keyExpiredListener‘ defined in f相关推荐
- 【SpringBoot】Error creating bean with name ‘methodValidationPostProcessor‘ defined in class path reso
报错代码: Correct the classpath of your application so that it contains a single, compatible version of ...
- 记一次SpringBoot操作redis报错 Error creating bean with name ‘dataSource‘ defined in class path resource解决方法
代码块 以下为Springboot操作Redis一些简单的测试代码 maven依赖 <dependency><groupId>org.springframework.boot& ...
- 启动springboot报错Error creating bean with name 'dataSource' defined in class path resource
2019独角兽企业重金招聘Python工程师标准>>> 启动springboot报错Error creating bean with name 'dataSource' define ...
- SpringBoot启动报错: Error creating bean with name ‘“XXXX‘ defined in class path resource
报错信息: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reques ...
- Error creating bean with name ‘configurationPropertiesBeans‘ defined in class path resource异常分析
Error creating bean with name 'configurationPropertiesBeans' defined in class path resource异常分析 在学习使 ...
- No MyBatis mapper was found,Error creating bean with name 'xSqlSessionFactory' defined in class path
springboot mybatis 项目,mapper目录下无内容 导致mvn clean package 编译打包时报错,如下: 2019-10-24 09:45:38.972 INFO 3872 ...
- Error creating bean with name 'multipleEntityManagerFactory' defined in class
2019独角兽企业重金招聘Python工程师标准>>> Error creating bean with name 'multipleEntityManagerFactory' de ...
- Meavn 搭建项目遇到Error creating bean with name 'sessionFactory' defined in class path resource...
Error creating bean with name 'sessionFactory' defined in class path resource .nested exception is j ...
- BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [
现场情景: 初次搭建springboot工程,原本要搭建一个springboot+mybatis的maven工程,听说springboot会把一切给配置好,天真的在执行完mybatis自动生成mapp ...
最新文章
- YTU 2723: 默认参数--求圆的面积
- [unreal4入门系列之十一] 在UE4中编写C++代码控制角色
- 树莓派AI视觉云台——6、Linux常用命令及vim编辑器的使用
- python传送带和斐波那契
- C语言中数组所占字节怎么算
- angularjs中的分页指令
- python几种括号表示的类型
- java 模拟登陆 post_Java开发网 - 高手帮忙啊 (如何用java模拟post方式进行登陆论坛?)...
- 将java.util.Date转换为java.time.LocalDate
- 导入新工程,提示“Migrate Project to Gradle?”
- Matplotlib笔记(莫烦Python)
- IBM AI“新药发现”项目停止市场拓展
- 批处理之for /r
- 【数值优化之线搜索方法】
- 第七届蛋白质与蛋白质组学国际研讨会(CPP 2022)
- MybatisPlus中乐观锁的配置
- 操作系统实验报告【太原理工大学】
- .env .env.development .env.production 配置说明
- JS input[type=file]读取本地文件(读取json文件)
- 利用iptables的SNAT功能实现局域网共享上网
热门文章
- 5分钟搭建大数据学习环境
- 计算机毕业论文致谢,计算机软件毕业论文致谢词
- SOEM主站simple_test之ec_send_processdata
- 武汉新时标文化传媒有限公司短视频创作者实现突围?
- 【MySQL】5、Update修改语句
- 常见计算机主机内部硬件设备,计算机的硬件主要包括中央处理器、储存器、输出设备和...
- requests-html 爬虫新库
- 提高你计算机科学知识的5本书
- html网页登录红色按钮,CSS让网页提交input按钮与众不同
- HashMap初始化长度设置大小