Closed worldflyingct closed 5 years ago
my code is:
Vertx vertx = Vertx.vertx(); SQLClient client = MySQLClient.createShared(vertx, new JsonObject() .put("database", "homepage") .put("username", "root") .put("password", "root")); vertx.createHttpServer() .requestHandler(req -> { req.response() .end("Hello World"); }) .listen(8080, handler -> { if (handler.succeeded()) { System.out.println("create httpserver success"); } else { System.err.println("create httpserver fail"); } });
I find http server is work, If I remove 'com.github.mauricio' from build.gradle, It is work. but vertx-mysql-postgresql-client is dependented com.github.mauricio, so I couldn't use this to a restful server.
I don't really understand your problem. What exactly is breaking?
my code is:
I find http server is work, If I remove 'com.github.mauricio' from build.gradle, It is work. but vertx-mysql-postgresql-client is dependented com.github.mauricio, so I couldn't use this to a restful server.