Spring Boot Project Deployment a strange problem in calling Redis in Docker

Source: Internet
Author: User
Tags install redis

Whitelabel Error Page

This application have no explicit mapping for/error, so is seeing this as a fallback.

Wed Dec 09:43:13 UTC 2016There is an unexpected error (type=internal Server error, status=500).

Error creating Bean with Name ' Enablerediskeyspacenotificationsinitializer ' defined in class path resource [org/springfra Mework/session/data/redis/config/annotation/web/http/redishttpsessionconfiguration.class]: Invocation of Init Method failed; Nested exception is org.springframework.data.redis.RedisConnectionFailureException:Cannot get Jedis connection; Nested exception is Redis.clients.jedis.exceptions.JedisConnectio

These are the errors that appear on the post-deployment page of the Docker environment without Docker starting completely normal with the Java-jar jar package name

Workaround

1 Entering the Docker container

2 Installing Redis (i'm using Ubuntu)

Apt-get Update
Apt-get Install Redis-server
#启动redis
Redis-server/etc/redis/redis.conf

3 and then It's Normal.

Spring Boot Project Deployment a strange problem in calling Redis in Docker

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.