From d36a7f8e416b0b449467afb73d6d0aadb58b0d83 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Mon, 13 Jun 2022 23:07:36 +0200 Subject: [PATCH] fix trouble redis --- src/main/java/com/covas/Resources/MailRessource.java | 2 +- src/main/resources/application.properties | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/covas/Resources/MailRessource.java b/src/main/java/com/covas/Resources/MailRessource.java index e475f9f..a157725 100644 --- a/src/main/java/com/covas/Resources/MailRessource.java +++ b/src/main/java/com/covas/Resources/MailRessource.java @@ -52,7 +52,7 @@ public class MailRessource { @GET @Path("get-redis/{id}") public Response getRedis(@PathParam("id") String id){ - return Response.ok().entity(redisClient.get(id)).build(); + return Response.ok().entity(redisClient.get(id).toString()).build(); } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 60ba02a..23993d9 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -24,5 +24,4 @@ quarkus.mailer.mock=false -quarkus.redis.hosts=redis://localhost:6379 - +quarkus.redis.hosts=redis://localhost:6379