Docker compose Redis和Spring boot应用程序:java.net.ConnectException:拒绝连接(拒绝连接)“;,

Docker compose Redis和Spring boot应用程序:java.net.ConnectException:拒绝连接(拒绝连接)“;,,java,spring-boot,redis,docker-compose,jedis,Java,Spring Boot,Redis,Docker Compose,Jedis,Iam在另一个容器中使用Dockerize spring启动应用程序和redis 我使用docker compose在同一网络中运行两个容器,这是我的docker-compose.yml: version: '3' services: app: image: shortenurl links: - redis ports: - 8080:8080 networks: - redis-net depends_on:

Iam在另一个容器中使用Dockerize spring启动应用程序和redis

我使用docker compose在同一网络中运行两个容器,这是我的docker-compose.yml:

version: '3'
services:
  app:
    image: shortenurl
    links:
      - redis
    ports:
      - 8080:8080
    networks:
      - redis-net
    depends_on:
      - redis

  redis:
    image: redis
    command: ["redis-server", "--appendonly", "yes"]
    hostname: redis
    ports:
      - 6379:6379
    networks:
      - redis-net
    volumes:
      - redis-data:/data

networks:
  redis-net:

volumes:
  redis-data:
这是我的application.yml文件:

spring:
  application:
    name: shortenurl
  redis:
    host: localhost
    port: 6379
我也尝试过redis hots=redis,但结果是一样的

我的问题是,我得到了这个java.net.ConnectException:connectiondensed(connectiondensed)”,即使容器在同一个网络中

我使用绝地武士作为redis客户端。问题在于下一种方法:

这是我的日志:

java.net.ConnectException: Connection refused (Connection refused)
app_1    |      at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.8.0_111]
app_1    |      at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[na:1.8.0_111]
app_1    |      at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[na:1.8.0_111]
app_1    |      at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[na:1.8.0_111]
app_1    |      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0_111]
app_1    |      at java.net.Socket.connect(Socket.java:589) ~[na:1.8.0_111]
app_1    |      at redis.clients.jedis.Connection.connect(Connection.java:184) ~[jedis-2.9.0.jar!/:na]
app_1    |      at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:93) ~[jedis-2.9.0.jar!/:na]
app_1    |      at redis.clients.jedis.Connection.sendCommand(Connection.java:126) ~[jedis-2.9.0.jar!/:na]
app_1    |      at redis.clients.jedis.BinaryClient.incr(BinaryClient.java:228) ~[jedis-2.9.0.jar!/:na]
app_1    |      at redis.clients.jedis.Client.incr(Client.java:158) ~[jedis-2.9.0.jar!/:na]
app_1    |      at redis.clients.jedis.Jedis.incr(Jedis.java:599) ~[jedis-2.9.0.jar!/:na]
app_1    |      at com.neueda.shorturl.repository.ShortURLRepository.incrementID(ShortURLRepository.java:28) ~[classes!/:0.0.1-SNAPSHOT]
app_1    |      at com.neueda.shorturl.repository.ShortURLRepository$$FastClassBySpringCGLIB$$7fae7543.invoke(<generated>) ~[classes!/:0.0.1-SNAPSHOT]
app_1    |      at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[spring-core-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746) ~[spring-aop-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139) ~[spring-tx-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) ~[spring-aop-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) ~[spring-aop-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at com.neueda.shorturl.repository.ShortURLRepository$$EnhancerBySpringCGLIB$$1e27c0d9.incrementID(<generated>) ~[classes!/:0.0.1-SNAPSHOT]
app_1    |      at com.neueda.shorturl.service.URLConverterService.shortenURL(URLConverterService.java:30) ~[classes!/:0.0.1-SNAPSHOT]
app_1    |      at com.neueda.shorturl.controller.ShortenUrlController.shortenUrl(ShortenUrlController.java:31) ~[classes!/:0.0.1-SNAPSHOT]
app_1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_111]
app_1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_111]
app_1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_111]
app_1    |      at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_111]
app_1    |      at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209) ~[spring-web-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136) ~[spring-web-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102) ~[spring-webmvc-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:877) ~[spring-webmvc-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:783) ~[spring-webmvc-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991) ~[spring-webmvc-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925) ~[spring-webmvc-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974) ~[spring-webmvc-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:877) ~[spring-webmvc-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at javax.servlet.http.HttpServlet.service(HttpServlet.java:661) ~[tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851) ~[spring-webmvc-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) ~[tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) ~[tomcat-embed-websocket-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:90) ~[spring-boot-actuator-2.0.4.RELEASE.jar!/:2.0.4.RELEASE]
app_1    |      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) ~[spring-web-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109) ~[spring-web-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93) ~[spring-web-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:155) ~[spring-boot-actuator-2.0.4.RELEASE.jar!/:2.0.4.RELEASE]
app_1    |      at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:123) ~[spring-boot-actuator-2.0.4.RELEASE.jar!/:2.0.4.RELEASE]
app_1    |      at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:108) ~[spring-boot-actuator-2.0.4.RELEASE.jar!/:2.0.4.RELEASE]
app_1    |      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200) ~[spring-web-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1    |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) ~[tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493) [tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) [tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) [tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) [tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800) [tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:800) [tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1471) [tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_111]
app_1    |      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_111]
app_1    |      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.32.jar!/:8.5.32]
app_1    |      at java.lang.Thread.run(Thread.java:745) [na:1.8.0_111]
java.net.ConnectException:连接被拒绝(连接被拒绝)
应用程序1 |位于java.net.PlainSocketImpl.socketConnect(本机方法)~[na:1.8.0|111]
应用程序1 |位于java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)~[na:1.8.0_111]
应用程序1位于java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)~[na:1.8.0_111]
app|1|位于java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)~[na:1.8.0_111]
应用程序1位于java.net.socksocketimpl.connect(socksocketimpl.java:392)~[na:1.8.0_111]
app|1位于java.net.Socket.connect(Socket.java:589)~[na:1.8.0|111]
app_1|位于redis.clients.jedis.Connection.connect(Connection.java:184)~[jedis-2.9.0.jar!/:na]
应用程序1 |位于redis.clients.jedis.BinaryClient.connect(BinaryClient.java:93)~[jedis-2.9.0.jar!/:na]
app_1|位于redis.clients.jedis.Connection.sendCommand(Connection.java:126)~[jedis-2.9.0.jar!/:na]
应用程序1位于redis.clients.jedis.BinaryClient.incr(BinaryClient.java:228)~[jedis-2.9.0.jar!/:na]
应用程序1位于redis.clients.jedis.Client.incr(Client.java:158)~[jedis-2.9.0.jar!/:na]
应用程序1 |位于redis.clients.jedis.jedis.incr(jedis.java:599)~[jedis-2.9.0.jar!/:na]
app_1|位于com.neueda.shorturl.repository.ShortURLRepository.incrementID(ShortURLRepository.java:28)~[classes!/:0.0.1-SNAPSHOT]
应用程序| 1 |位于com.neueda.shorturl.repository.ShortURLRepository$$FastClassBySpringCGLIB$$7fae7543.invoke()~[classes!/:0.0.1-SNAPSHOT]
app_1 |位于org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)~[spring-core-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app|1位于org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)~[spring-aop-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app|u 1 |位于org.springframework.aop.framework.ReflectiveMethodInvocation.procedue(ReflectiveMethodInvocation.java:163)~[spring-aop-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1|位于org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139)~[spring-tx-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app|u 1 |位于org.springframework.aop.framework.ReflectiveMethodInvocation.procedue(ReflectiveMethodInvocation.java:185)~[spring-aop-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
应用程序1 |位于org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)~[spring-aop-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1|位于com.neueda.shorturl.repository.ShortURLRepository$$EnhancerBySpringCGLIB$$1e27c0d9.incrementID()~[classes!/:0.0.1-SNAPSHOT]
应用程序| 1 |位于com.neueda.shorturl.service.URLConverterService.shortenURL(URLConverterService.java:30)~[classes!/:0.0.1-SNAPSHOT]
app_1|位于com.neueda.shorturl.controller.ShortenUrlController.shortenUrl(ShortenUrlController.java:31)~[classes!/:0.0.1-SNAPSHOT]
应用程序1位于sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)~[na:1.8.0_111]
app|1| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)~[na:1.8.0_111]
app|1| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)~[na:1.8.0_111]
app|1位于java.lang.reflect.Method.invoke(Method.java:498)~[na:1.8.0|111]
app|1 |位于org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)~[spring-web-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1|位于org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)~[spring-web-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app|u 1 |位于org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)~[spring-webmvc-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app|u 1 |位于org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:877)~[spring-webmvc-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app|1位于org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:783)~[spring-webmvc-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1|位于org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)~[spring-webmvc-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1|位于org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)~[spring-webmvc-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1|位于org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)~[spring-webmvc-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1 |位于org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)~[spring-webmvc-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1|位于org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:877)~[spring-webmvc-5.0.8.RELEASE.jar!/:5.0.8.RELEASE]
app_1|位于javax.servlet.http.HttpServlet.service(HttpServlet
Set<HostAndPort> jedisClusterNodes = new HashSet<HostAndPort>();

jedisClusterNodes.add(new HostAndPort("redis", 6379));