public class App {
//private static final Logger logger = LoggerFactory.getLogger(App.class);
private static Logger logger = LoggerFactory.getLogger(App.class.getName());
private static ObjectMapper mapper = new ObjectMapper();
public static void main(String[] args) {
Integer port = args.length>0?Integer.parseInt(args[0]): 7000;
Javalin app = Javalin.create().port(port).start();
app.get("/", ctx -> ctx.result("service working"));
app.post("/mhbwebservice", handler);
}
}
您能否就如何在 javalin 框架中提供日志路径提出建议