skip to Main Content

Invocation of init method failed; nested exception is java.lang.RuntimeException: Can't start redis server

I am using embedded Redis in our Webflux testcases using the following dependency in pom.xml file <dependency> <groupId>com.github.kstyrc</groupId> <artifactId>embedded-redis</artifactId> <version>0.6</version> </dependency> And using below annotations for controllertest classes @RunWith(SpringRunner.class) @AutoConfigureWebTestClient(timeout = "36000000") @WithMockUser @TestPropertySource(locations = "classpath:application-test.properties") @SpringBootTest(classes = Application.class) @DirtiesContext…

VIEW QUESTION

Unable to connect to Redis in GCP which is SSL Enabled

I am using Spring-boot-starter-redis dependency to connect to redis (below is my snippet from gradle dependency dependencies { implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-actuator' implementation 'org.springframework.boot:spring-boot-starter-data-redis' compileOnly 'org.projectlombok:lombok:1.18.20' annotationProcessor 'org.projectlombok:lombok:1.18.20' } I am moving to GCP now and the redis in GCP…

VIEW QUESTION
Back To Top
Search