My notes :)
For building web applications Use vertx. web is better and easier than vert.x
Vertx.web is ideal for the following :
For maven :
Router - maintains 0 or more routes.
Router takes a request finds the route and passes the request to the route.
A route has a handle associated to perform some action when the request is received.
Write a simple class that extends the abstract vehicle
Add the following plugin to run the application
Packaging as a fat jar. A fat jar has all dependencies which make it easy to execute.
For building web applications Use vertx. web is better and easier than vert.x
Vertx.web is ideal for the following :
- Classic Server side web applications.
- REST ful API's
For maven :
Router - maintains 0 or more routes.
Router takes a request finds the route and passes the request to the route.
A route has a handle associated to perform some action when the request is received.
Write a simple class that extends the abstract vehicle
Add the following plugin to run the application
Packaging as a fat jar. A fat jar has all dependencies which make it easy to execute.
Build the mvn application : mvn clean install
To run :java -jar target/1.0.1-1-fat.jar
http://localhost:8080/
Comments
Post a Comment