Próbuję napisać springowy hello world, coś w stylu: https://4programmers.net/Mikroblogi/View/21850
public class Server {
public static void main(String[] args) {
RouterFunction<?> route = route(GET("/hello"),
request -> {
Mono<String> hi = Mono.just("hi");
return ServerResponse.ok().contentType(TEXT_PLAIN).body(hi, String.class);
});
HttpHandler httpHandler = RouterFunctions.toHttpHandler(route);
ReactorHttpHandlerAdapter adapter =
new ReactorHttpHandlerAdapter(httpHandler);
HttpServer server = HttpServer.create("localhost", 8080);
server.startAndAwait(adapter);
}
}
Jednak nie mam możliwości zaimportowania (ipc jest na czerwono):
import reactor.ipc.netty.http.server.HttpServer;
Próbowałem poszukać w oficjalnej doumentacji, jednak po wklejeniu importu w google i wejściu w pierwszy link dostaje 404 :)
Gdzie może leżeć problem ?