Context data
在一个请求的生命周期之内, 你可以将想要在handler之间共享的数据放在RoutingContext中进行传递.
下面的例子中,使用put添加数据, 使用get检索数据.
router.get("/some/path").handler(routingContext -> {routingContext.put("foo", "bar");routingContext.next();});router.get("/some/path/other").handler(routingContext -> {String bar = routingContext.get("foo");// Do something with barroutingContext.response().end();});
