0
나는 다음과 같습니다 리소스 방법이 있습니다Dropwizard에서 Servlet 3.0 비동기 메소드를 사용하려면 어떻게해야합니까?
@Path("hard")
@GET
public Response sayHello2(@Context HttpServletRequest request)
throws InterruptedException {
AsyncContext ac = request.startAsync();
Thread.sleep(1000);
ac.complete();
return Response.ok("hello world hard").build();
}
코드를 통해 실행처럼 보이는,하지만 난 그 비동기이 경우 작동하는지 확인 할 수없는 것? 올바르게 사용하고 있습니까?