From 31bc725d1122cf11657dacd06dcad97f94714904 Mon Sep 17 00:00:00 2001 From: Davide Cerbo Date: Mon, 14 Nov 2016 17:32:37 +0100 Subject: [PATCH] fixed imports and logger --- .../src/main/java/resource/HelloResource.java | 5 ++++- .../archetype-resources}/src/main/resources/logback.xml | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) rename {nut-corelationid => nut-archetype/src/main/resources/archetype-resources}/src/main/resources/logback.xml (83%) diff --git a/nut-archetype/src/main/resources/archetype-resources/src/main/java/resource/HelloResource.java b/nut-archetype/src/main/resources/archetype-resources/src/main/java/resource/HelloResource.java index 07c108a..6399e4c 100644 --- a/nut-archetype/src/main/resources/archetype-resources/src/main/java/resource/HelloResource.java +++ b/nut-archetype/src/main/resources/archetype-resources/src/main/java/resource/HelloResource.java @@ -11,9 +11,10 @@ import javax.inject.Inject; import javax.ws.rs.*; +import javax.ws.rs.client.Client; +import javax.ws.rs.client.ClientBuilder; import javax.ws.rs.core.MediaType; import java.util.List; -import java.util.UUID; @Api("Hello") @Path("/hello") @@ -22,6 +23,8 @@ public class HelloResource { + private Logger logger = LoggerFactory.getLogger(HelloResource.class); + @Inject OObjectDatabaseTx db; diff --git a/nut-corelationid/src/main/resources/logback.xml b/nut-archetype/src/main/resources/archetype-resources/src/main/resources/logback.xml similarity index 83% rename from nut-corelationid/src/main/resources/logback.xml rename to nut-archetype/src/main/resources/archetype-resources/src/main/resources/logback.xml index 9a41e42..500227c 100644 --- a/nut-corelationid/src/main/resources/logback.xml +++ b/nut-archetype/src/main/resources/archetype-resources/src/main/resources/logback.xml @@ -1,6 +1,6 @@ - @@ -10,7 +10,7 @@ - +