I am looking at some examples of reactive web applications and i am seeing them like this
@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)
@Res
It depends on which server you use.
For instance, Tomcat, Jetty (Servlet 3.1 non-blocking I/O) - ServletHttpHandlerAdapter
from org.springframework.http.server.reactive
package.
Subscription happens in service method:
@Override
public void service(ServletRequest request, ServletResponse response) throws
ServletException, IOException {
...
HandlerResultSubscriber subscriber = new HandlerResultSubscriber(asyncContext,
isCompleted, httpRequest);
this.httpHandler.handle(httpRequest, httpResponse).subscribe(subscriber);
}