diff --git a/settings.gradle b/settings.gradle index 53b9445..1e56594 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1,4 @@ +plugins { + id 'org.gradle.toolchains.foojay-resolver-convention' version '1.0.0' +} rootProject.name = 'JerseyExercise' diff --git a/src/main/java/com/example/jerseyexercise/resources/Disney.java b/src/main/java/com/example/jerseyexercise/resources/Disney.java new file mode 100644 index 0000000..9e71904 --- /dev/null +++ b/src/main/java/com/example/jerseyexercise/resources/Disney.java @@ -0,0 +1,17 @@ +package com.example.jerseyexercise.resources; + +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import org.springframework.stereotype.Component; + +@Path("/disney") +@Component +public class Disney { + @GET + @Produces(MediaType.TEXT_PLAIN) + public String getDisney() { + return "Disney!!"; + } +}