all
This commit is contained in:
16
3/myTest01/src/main/java/edu/hsog/GreetingResource.java
Normal file
16
3/myTest01/src/main/java/edu/hsog/GreetingResource.java
Normal file
@ -0,0 +1,16 @@
|
||||
package edu.hsog;
|
||||
|
||||
import jakarta.ws.rs.GET;
|
||||
import jakarta.ws.rs.Path;
|
||||
import jakarta.ws.rs.Produces;
|
||||
import jakarta.ws.rs.core.MediaType;
|
||||
|
||||
@Path("/hello")
|
||||
public class GreetingResource {
|
||||
|
||||
@GET
|
||||
@Produces(MediaType.TEXT_PLAIN)
|
||||
public String hello() {
|
||||
return "Hello RESTEasy";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user