From 72a40a7f2f7f25bba2e50a634af1a333145806d8 Mon Sep 17 00:00:00 2001 From: Chris Aslanoglou Date: Tue, 13 Apr 2021 16:27:08 +0300 Subject: [PATCH] Singleton resource & constr. injection failing --- src/main/java/org/acme/getting/started/GreetingResource.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/acme/getting/started/GreetingResource.java b/src/main/java/org/acme/getting/started/GreetingResource.java index 96ecb4c..7b5956f 100644 --- a/src/main/java/org/acme/getting/started/GreetingResource.java +++ b/src/main/java/org/acme/getting/started/GreetingResource.java @@ -1,6 +1,7 @@ package org.acme.getting.started; import javax.inject.Inject; +import javax.inject.Singleton; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; @@ -8,6 +9,7 @@ import org.jboss.resteasy.annotations.jaxrs.PathParam; +@Singleton @Path("/hello") public class GreetingResource {