I am using Vert.x 3.0.0-milestone5, to develop a sample web application. Everything is working fine as far as the routing is concerned, but I am not able to access request parameters using
routingContext.getBodyAsJson()
or
routingContext.getBody()
or
routingContext.getBodyAsString()
.
Here is the complete description.
If you want to use
routingContext.getBody();
routingContext.getBodyAsJson();
You first need to add a body handler like below:
router.route().handler(BodyHandler.create());
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With