Created
January 28, 2017 08:37
-
-
Save dilunika/3e33483f971c83a9c9ff16f5f171caaf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AdminToolsVerticle extends AbstractVerticle { | |
@Override | |
public void start(Future<Void> fut) throws Exception { | |
Router router = Router.router(vertx); | |
JdbcUtil.initialize(vertx); | |
VehicleOwnerRoute.initialize(router); | |
vertx | |
.createHttpServer() | |
.requestHandler(router::accept) | |
.listen( | |
config().getInteger(HTTP_PORT, 8080), | |
http -> completeStartup(http, fut) | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment