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();
}
Aggregations