import io.scallop.Scallop;
import io.scallop.config.AppConfig;
public class MyApp {
public static void main(String[] args) {
AppConfig config = new AppConfig();
config.setPort(8080);
config.setDatabaseUrl("jdbc:mysql://localhost:3306/mydb");
config.setDatabaseUsername("root");
config.setDatabasePassword("password");
Scallop app = new Scallop(config);
app.get("/hello", (req, res) -> {
res.send("Hello, World!");
});
app.start();
}
}