1. Introduction
1.1. reactor-netty-example
Netty server - fast and easy
easy…
public class App {
public static void main(String[] args) {
HttpServer.create(8080).startRouterAndAwait(
routes -> routes.get("/", (req, resp) -> resp.sendString(Mono.just("hello!"))));
}
}
build run and test
./gradlew bootRun
./mvnw spring-boot:run
http :8080
links:
Initially generated by using generator-jvm yeoman generator (java-spring-boot)