package com.example.jenkinstest.controllers;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
import jakarta.ws.rs.core.Response;
import org.springframework.stereotype.Controller;
@Controller
@Path("/")
public class TestController {
//aaa
@Path("/test")
@GET
@Produces(MediaType.APPLICATION_JSON)
public Response test() {
return Response.status(Response.Status.OK).entity("{\"message\": \"hello world!\"}").build();
}
}