Java
未读
javalin实现类似Springboot批量扫描controller注册action的效果
背景 javalin 太轻量,没有像 springboot 那样的 controller 扫描机制,要注册一个路由,需要手动调用方法来添加,如下 app.get("/output", ctx -> {
// some code
ctx.json(object);
});
app.p