diff --git a/src/main/java/com/example/jerseyexercise/resources/HelloWorldRest.java b/src/main/java/com/example/jerseyexercise/resources/HelloWorldRest.java index ff3b97c..f728a98 100644 --- a/src/main/java/com/example/jerseyexercise/resources/HelloWorldRest.java +++ b/src/main/java/com/example/jerseyexercise/resources/HelloWorldRest.java @@ -1,9 +1,12 @@ package com.example.jerseyexercise.resources; +import org.springframework.stereotype.Component; + import javax.ws.rs.*; import javax.ws.rs.core.*; @Path("/helloworld") +@Component public class HelloWorldRest { private String message = "Hello World!!";