skip to Main Content

Connection to Redis Cache using Spring Data Redis

I am trying to connect to Redis Cluster using Spring Data Redis. Below are is how I configured it. import org.springframework.data.redis.connection.RedisStandaloneConfiguration; import org.springframework.data.redis.connection.jedis.JedisConnectionFactory; import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory; import org.springframework.data.redis.core.RedisTemplate; @Configuration public class RedisConfig { @Bean public JedisConnectionFactory jedisConnectionFactory(){ RedisStandaloneConfiguration config= new RedisStandaloneConfiguration("server",portno);…

VIEW QUESTION

unable to start container process: exec: "mvnw": executable file not found in $PATH: unknown – Docker

This is my source code https://github.com/donhuvy/springboot-docker . I follow guide at tutorial video https://www.youtube.com/watch?v=7BCtc9cAS6o . File Dockerfile # syntax=docker/dockerfile:1 #Which "official Java image" ? FROM openjdk:oraclelinux8 #working directory WORKDIR /app #copy from your Host(PC, laptop) to container COPY .mvn/ .mvn…

VIEW QUESTION
Back To Top
Search