vert-x3 / vertx-mysql-postgresql-client

This client is deprecated - use instead
https://github.com/eclipse-vertx/vertx-sql-client
Apache License 2.0
117 stars 59 forks source link

this library is dependented com.github.mauricio, but it break vert http function #162

Closed worldflyingct closed 5 years ago

worldflyingct commented 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.

codepitbull commented 5 years ago

I don't really understand your problem. What exactly is breaking?