Search in sources :

Example 1 with StudentController

use of com.revature.controller.StudentController in project training by java-gcp-220228.

the class Driver method main.

public static void main(String[] args) {
    Javalin app = Javalin.create();
    // This will execute before every single request
    app.before((ctx) -> {
        logger.info(ctx.method() + " request received for " + ctx.path());
    });
    mapControllers(app, new HelloWorldController(), new StudentController(), new ExceptionController());
    // port 8080 by default
    app.start();
}
Also used : Javalin(io.javalin.Javalin) HelloWorldController(com.revature.controller.HelloWorldController) ExceptionController(com.revature.controller.ExceptionController) StudentController(com.revature.controller.StudentController)

Aggregations

ExceptionController (com.revature.controller.ExceptionController)1 HelloWorldController (com.revature.controller.HelloWorldController)1 StudentController (com.revature.controller.StudentController)1 Javalin (io.javalin.Javalin)1