D:\Java\jdk1.8.0_241\bin\java.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-javaagent:D:\IntelliJ IDEA 2020.2.1\lib\idea_rt.jar=28494:D:\IntelliJ IDEA 2020.2.1\bin" -Dfile.encoding=UTF-8 -classpath D:\Java\jdk1.8.0_241\jre\lib\charsets.jar;D:\Java\jdk1.8.0_241\jre\lib\deploy.jar;D:\Java\jdk1.8.0_241\jre\lib\ext\access-bridge-64.jar;D:\Java\jdk1.8.0_241\jre\lib\ext\cldrdata.jar;D:\Java\jdk1.8.0_241\jre\lib\ext\dnsns.jar;D:\Java\jdk1.8.0_241\jre\lib\ext\jaccess.jar;D:\Java\jdk1.8.0_241\jre\lib\ext\jfxrt.jar;D:\Java\jdk1.8.0_241\jre\lib\ext\localedata.jar;D:\Java\jdk1.8.0_241\jre\lib\ext\nashorn.jar;D:\Java\jdk1.8.0_241\jre\lib\ext\sunec.jar;D:\Java\jdk1.8.0_241\jre\lib\ext\sunjce_provider.jar;D:\Java\jdk1.8.0_241\jre\lib\ext\sunmscapi.jar;D:\Java\jdk1.8.0_241\jre\lib\ext\sunpkcs11.jar;D:\Java\jdk1.8.0_241\jre\lib\ext\zipfs.jar;D:\Java\jdk1.8.0_241\jre\lib\javaws.jar;D:\Java\jdk1.8.0_241\jre\lib\jce.jar;D:\Java\jdk1.8.0_241\jre\lib\jfr.jar;D:\Java\jdk1.8.0_241\jre\lib\jfxswt.jar;D:\Java\jdk1.8.0_241\jre\lib\jsse.jar;D:\Java\jdk1.8.0_241\jre\lib\management-agent.jar;D:\Java\jdk1.8.0_241\jre\lib\plugin.jar;D:\Java\jdk1.8.0_241\jre\lib\resources.jar;D:\Java\jdk1.8.0_241\jre\lib\rt.jar;D:\test2\target\classes;D:\maven\apache-maven-3.6.3\respository\org\springframework\boot\spring-boot-starter-data-redis\2.4.4\spring-boot-starter-data-redis-2.4.4.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\boot\spring-boot-starter\2.4.4\spring-boot-starter-2.4.4.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\boot\spring-boot-starter-logging\2.4.4\spring-boot-starter-logging-2.4.4.jar;D:\maven\apache-maven-3.6.3\respository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\maven\apache-maven-3.6.3\respository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\maven\apache-maven-3.6.3\respository\org\apache\logging\log4j\log4j-to-slf4j\2.13.3\log4j-to-slf4j-2.13.3.jar;D:\maven\apache-maven-3.6.3\respository\org\apache\logging\log4j\log4j-api\2.13.3\log4j-api-2.13.3.jar;D:\maven\apache-maven-3.6.3\respository\org\slf4j\jul-to-slf4j\1.7.30\jul-to-slf4j-1.7.30.jar;D:\maven\apache-maven-3.6.3\respository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;D:\maven\apache-maven-3.6.3\respository\org\yaml\snakeyaml\1.27\snakeyaml-1.27.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\data\spring-data-redis\2.4.6\spring-data-redis-2.4.6.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\data\spring-data-keyvalue\2.4.6\spring-data-keyvalue-2.4.6.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\data\spring-data-commons\2.4.6\spring-data-commons-2.4.6.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\spring-tx\5.3.5\spring-tx-5.3.5.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\spring-oxm\5.3.5\spring-oxm-5.3.5.jar;D:\maven\apache-maven-3.6.3\respository\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar;D:\maven\apache-maven-3.6.3\respository\io\lettuce\lettuce-core\6.0.3.RELEASE\lettuce-core-6.0.3.RELEASE.jar;D:\maven\apache-maven-3.6.3\respository\io\netty\netty-common\4.1.60.Final\netty-common-4.1.60.Final.jar;D:\maven\apache-maven-3.6.3\respository\io\netty\netty-handler\4.1.60.Final\netty-handler-4.1.60.Final.jar;D:\maven\apache-maven-3.6.3\respository\io\netty\netty-resolver\4.1.60.Final\netty-resolver-4.1.60.Final.jar;D:\maven\apache-maven-3.6.3\respository\io\netty\netty-buffer\4.1.60.Final\netty-buffer-4.1.60.Final.jar;D:\maven\apache-maven-3.6.3\respository\io\netty\netty-codec\4.1.60.Final\netty-codec-4.1.60.Final.jar;D:\maven\apache-maven-3.6.3\respository\io\netty\netty-transport\4.1.60.Final\netty-transport-4.1.60.Final.jar;D:\maven\apache-maven-3.6.3\respository\io\projectreactor\reactor-core\3.4.4\reactor-core-3.4.4.jar;D:\maven\apache-maven-3.6.3\respository\org\reactivestreams\reactive-streams\1.0.3\reactive-streams-1.0.3.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\boot\spring-boot-starter-freemarker\2.4.4\spring-boot-starter-freemarker-2.4.4.jar;D:\maven\apache-maven-3.6.3\respository\org\freemarker\freemarker\2.3.31\freemarker-2.3.31.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\spring-context-support\5.3.5\spring-context-support-5.3.5.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\spring-beans\5.3.5\spring-beans-5.3.5.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\spring-context\5.3.5\spring-context-5.3.5.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\boot\spring-boot-starter-security\2.4.4\spring-boot-starter-security-2.4.4.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\spring-aop\5.3.5\spring-aop-5.3.5.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\security\spring-security-config\5.4.5\spring-security-config-5.4.5.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\security\spring-security-web\5.4.5\spring-security-web-5.4.5.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\spring-expression\5.3.5\spring-expression-5.3.5.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\boot\spring-boot-starter-web\2.4.4\spring-boot-starter-web-2.4.4.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\boot\spring-boot-starter-json\2.4.4\spring-boot-starter-json-2.4.4.jar;D:\maven\apache-maven-3.6.3\respository\com\fasterxml\jackson\core\jackson-databind\2.11.4\jackson-databind-2.11.4.jar;D:\maven\apache-maven-3.6.3\respository\com\fasterxml\jackson\core\jackson-annotations\2.11.4\jackson-annotations-2.11.4.jar;D:\maven\apache-maven-3.6.3\respository\com\fasterxml\jackson\core\jackson-core\2.11.4\jackson-core-2.11.4.jar;D:\maven\apache-maven-3.6.3\respository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.11.4\jackson-datatype-jdk8-2.11.4.jar;D:\maven\apache-maven-3.6.3\respository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.11.4\jackson-datatype-jsr310-2.11.4.jar;D:\maven\apache-maven-3.6.3\respository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.11.4\jackson-module-parameter-names-2.11.4.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\boot\spring-boot-starter-tomcat\2.4.4\spring-boot-starter-tomcat-2.4.4.jar;D:\maven\apache-maven-3.6.3\respository\org\apache\tomcat\embed\tomcat-embed-core\9.0.44\tomcat-embed-core-9.0.44.jar;D:\maven\apache-maven-3.6.3\respository\org\glassfish\jakarta.el\3.0.3\jakarta.el-3.0.3.jar;D:\maven\apache-maven-3.6.3\respository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.44\tomcat-embed-websocket-9.0.44.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\spring-web\5.3.5\spring-web-5.3.5.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\spring-webmvc\5.3.5\spring-webmvc-5.3.5.jar;D:\maven\apache-maven-3.6.3\respository\org\mybatis\spring\boot\mybatis-spring-boot-starter\2.1.4\mybatis-spring-boot-starter-2.1.4.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\boot\spring-boot-starter-jdbc\2.4.4\spring-boot-starter-jdbc-2.4.4.jar;D:\maven\apache-maven-3.6.3\respository\com\zaxxer\HikariCP\3.4.5\HikariCP-3.4.5.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\spring-jdbc\5.3.5\spring-jdbc-5.3.5.jar;D:\maven\apache-maven-3.6.3\respository\org\mybatis\spring\boot\mybatis-spring-boot-autoconfigure\2.1.4\mybatis-spring-boot-autoconfigure-2.1.4.jar;D:\maven\apache-maven-3.6.3\respository\org\mybatis\mybatis\3.5.6\mybatis-3.5.6.jar;D:\maven\apache-maven-3.6.3\respository\org\mybatis\mybatis-spring\2.0.6\mybatis-spring-2.0.6.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\session\spring-session-data-redis\2.4.2\spring-session-data-redis-2.4.2.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\session\spring-session-core\2.4.2\spring-session-core-2.4.2.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\spring-jcl\5.3.5\spring-jcl-5.3.5.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\boot\spring-boot-starter-actuator\2.4.4\spring-boot-starter-actuator-2.4.4.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\boot\spring-boot-actuator-autoconfigure\2.4.4\spring-boot-actuator-autoconfigure-2.4.4.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\boot\spring-boot-actuator\2.4.4\spring-boot-actuator-2.4.4.jar;D:\maven\apache-maven-3.6.3\respository\io\micrometer\micrometer-core\1.6.5\micrometer-core-1.6.5.jar;D:\maven\apache-maven-3.6.3\respository\org\hdrhistogram\HdrHistogram\2.1.12\HdrHistogram-2.1.12.jar;D:\maven\apache-maven-3.6.3\respository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\boot\spring-boot-devtools\2.4.4\spring-boot-devtools-2.4.4.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\boot\spring-boot\2.4.4\spring-boot-2.4.4.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\boot\spring-boot-autoconfigure\2.4.4\spring-boot-autoconfigure-2.4.4.jar;D:\maven\apache-maven-3.6.3\respository\mysql\mysql-connector-java\8.0.23\mysql-connector-java-8.0.23.jar;D:\maven\apache-maven-3.6.3\respository\org\projectlombok\lombok\1.18.18\lombok-1.18.18.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\spring-core\5.3.5\spring-core-5.3.5.jar;D:\maven\apache-maven-3.6.3\respository\org\springframework\security\spring-security-core\5.4.5\spring-security-core-5.4.5.jar com.example.test2.Test2Application
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.4.4)
2021-04-02 08:27:43.748 INFO 3792 --- [ restartedMain] com.example.test2.Test2Application : Starting Test2Application using Java 1.8.0_241 on DESKTOP-DFGSCKR with PID 3792 (D:\test2\target\classes started by Dell in D:\test2)
2021-04-02 08:27:43.754 INFO 3792 --- [ restartedMain] com.example.test2.Test2Application : No active profile set, falling back to default profiles: default
2021-04-02 08:27:43.832 INFO 3792 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2021-04-02 08:27:43.834 INFO 3792 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2021-04-02 08:27:44.915 INFO 3792 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2021-04-02 08:27:44.918 INFO 3792 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2021-04-02 08:27:44.937 INFO 3792 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 6 ms. Found 0 Redis repository interfaces.
2021-04-02 08:27:45.550 INFO 3792 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2021-04-02 08:27:45.560 INFO 3792 --- [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2021-04-02 08:27:45.560 INFO 3792 --- [ restartedMain] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.44]
2021-04-02 08:27:45.680 INFO 3792 --- [ restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2021-04-02 08:27:45.680 INFO 3792 --- [ restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1844 ms
2021-04-02 08:27:46.646 INFO 3792 --- [ restartedMain] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2021-04-02 08:27:47.094 INFO 3792 --- [ restartedMain] .s.s.UserDetailsServiceAutoConfiguration :
Using generated security password: 970a2516-a7c4-4ac6-a708-e05a9fc059ab
2021-04-02 08:27:47.216 INFO 3792 --- [ restartedMain] o.s.s.web.DefaultSecurityFilterChain : Will secure any request with [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@41796217, org.springframework.security.web.context.SecurityContextPersistenceFilter@9a97fc, org.springframework.security.web.header.HeaderWriterFilter@5cee6da2, org.springframework.security.web.csrf.CsrfFilter@7b9eeb29, org.springframework.security.web.authentication.logout.LogoutFilter@26d4e940, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@657a6607, org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter@59a3c9ea, org.springframework.security.web.authentication.ui.DefaultLogoutPageGeneratingFilter@1d3d0ce8, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@3a3777fc, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@1929d78f, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@437d2820, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@1cb40024, org.springframework.security.web.session.SessionManagementFilter@403c896a, org.springframework.security.web.access.ExceptionTranslationFilter@22b2a977, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@219d268c]
2021-04-02 08:27:51.614 WARN 3792 --- [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' defined in class path resource [org/springframework/boot/autoconfigure/session/RedisSessionConfiguration$SpringBootRedisHttpSessionConfiguration.class]: 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 localhost:6379
2021-04-02 08:27:51.618 INFO 3792 --- [ restartedMain] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
2021-04-02 08:27:51.841 INFO 3792 --- [ restartedMain] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2021-04-02 08:27:51.871 INFO 3792 --- [ restartedMain] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-04-02 08:27:51.909 ERROR 3792 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' defined in class path resource [org/springframework/boot/autoconfigure/session/RedisSessionConfiguration$SpringBootRedisHttpSessionConfiguration.class]: 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 localhost:6379
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1786) ~[spring-beans-5.3.5.jar:5.3.5]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:602) ~[spring-beans-5.3.5.jar:5.3.5]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:524) ~[spring-beans-5.3.5.jar:5.3.5]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.5.jar:5.3.5]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.5.jar:5.3.5]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.5.jar:5.3.5]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.5.jar:5.3.5]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944) ~[spring-beans-5.3.5.jar:5.3.5]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) ~[spring-context-5.3.5.jar:5.3.5]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) ~[spring-context-5.3.5.jar:5.3.5]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144) ~[spring-boot-2.4.4.jar:2.4.4]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:769) [spring-boot-2.4.4.jar:2.4.4]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761) [spring-boot-2.4.4.jar:2.4.4]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426) [spring-boot-2.4.4.jar:2.4.4]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:326) [spring-boot-2.4.4.jar:2.4.4]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1313) [spring-boot-2.4.4.jar:2.4.4]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1302) [spring-boot-2.4.4.jar:2.4.4]
at com.example.test2.Test2Application.main(Test2Application.java:11) [classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_241]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_241]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_241]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_241]
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-2.4.4.jar:2.4.4]
Caused by: org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to localhost:6379
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$ExceptionTranslatingConnectionProvider.translateException(LettuceConnectionFactory.java:1553) ~[spring-data-redis-2.4.6.jar:2.4.6]
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$ExceptionTranslatingConnectionProvider.getConnection(LettuceConnectionFactory.java:1461) ~[spring-data-redis-2.4.6.jar:2.4.6]
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getNativeConnection(LettuceConnectionFactory.java:1247) ~[spring-data-redis-2.4.6.jar:2.4.6]
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getConnection(LettuceConnectionFactory.java:1230) ~[spring-data-redis-2.4.6.jar:2.4.6]
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getSharedConnection(LettuceConnectionFactory.java:979) ~[spring-data-redis-2.4.6.jar:2.4.6]
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getConnection(LettuceConnectionFactory.java:359) ~[spring-data-redis-2.4.6.jar:2.4.6]
at org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration$EnableRedisKeyspaceNotificationsInitializer.afterPropertiesSet(RedisHttpSessionConfiguration.java:331) ~[spring-session-data-redis-2.4.2.jar:2.4.2]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1845) ~[spring-beans-5.3.5.jar:5.3.5]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1782) ~[spring-beans-5.3.5.jar:5.3.5]
... 22 common frames omitted
Caused by: io.lettuce.core.RedisConnectionException: Unable to connect to localhost:6379
at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:78) ~[lettuce-core-6.0.3.RELEASE.jar:6.0.3.RELEASE]
at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:56) ~[lettuce-core-6.0.3.RELEASE.jar:6.0.3.RELEASE]
at io.lettuce.core.AbstractRedisClient.getConnection(AbstractRedisClient.java:320) ~[lettuce-core-6.0.3.RELEASE.jar:6.0.3.RELEASE]
at io.lettuce.core.RedisClient.connect(RedisClient.java:211) ~[lettuce-core-6.0.3.RELEASE.jar:6.0.3.RELEASE]
at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.lambda$getConnection$1(StandaloneConnectionProvider.java:115) ~[spring-data-redis-2.4.6.jar:2.4.6]
at java.util.Optional.orElseGet(Optional.java:267) ~[na:1.8.0_241]
at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.getConnection(StandaloneConnectionProvider.java:115) ~[spring-data-redis-2.4.6.jar:2.4.6]
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$ExceptionTranslatingConnectionProvider.getConnection(LettuceConnectionFactory.java:1459) ~[spring-data-redis-2.4.6.jar:2.4.6]
... 29 common frames omitted
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: localhost/127.0.0.1:6379
Caused by: java.net.ConnectException: Connection refused: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_241]
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[na:1.8.0_241]
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330) ~[netty-transport-4.1.60.Final.jar:4.1.60.Final]
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334) ~[netty-transport-4.1.60.Final.jar:4.1.60.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707) ~[netty-transport-4.1.60.Final.jar:4.1.60.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655) ~[netty-transport-4.1.60.Final.jar:4.1.60.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581) ~[netty-transport-4.1.60.Final.jar:4.1.60.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) ~[netty-transport-4.1.60.Final.jar:4.1.60.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) ~[netty-common-4.1.60.Final.jar:4.1.60.Final]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.60.Final.jar:4.1.60.Final]
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.60.Final.jar:4.1.60.Final]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_241]
Process finished with exit code 1
在写springboot时出现这个问题,错误日志如下
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- -独孤求败- 2021-04-02 09:03关注
这个6379端口是redis的,应该是连接redis失败导致的,所以,检查你的redis
在redis.config中配置
增加一行
notify-keyspace-events Egx
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥50 安装华大九天aether
- ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下
- ¥15 setInterval 页面闪烁,怎么解决
- ¥15 如何让企业微信机器人实现消息汇总整合
- ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
- ¥15 如何用Python爬取各高校教师公开的教育和工作经历
- ¥15 TLE9879QXA40 电机驱动
- ¥20 对于工程问题的非线性数学模型进行线性化
- ¥15 Mirare PLUS 进行密钥认证?(详解)
- ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证