vertx升级到3.9.2的mysql client的变动

星期五, 2020-10-02 | Author: Lee | JAVA-and-J2EE | 1,783 views

0. 应用有半年多没有动了,今天发现接口的数据丢失,未查到原因,重启应用解决,后续可能会放弃此应用 待定,先升个级

1.vertx升级到3.9.2 发现编译出错 调整修改

更多使用文档参加:https://vertx.io/docs/vertx-mysql-client/java/

 client
  .query("SELECT * FROM users WHERE id='sara'")
  .execute(ar -> {
  if (ar.succeeded()) {
    RowSet<Row> result = ar.result();
    System.out.println("Got " + result.size() + " rows ");
  } else {
    System.out.println("Failure: " + ar.cause().getMessage());
  }
 
  // Now close the pool
  client.close();

Tags:

文章作者: Lee

本文地址: https://www.pomelolee.com/2113.html

除非注明,Pomelo Lee文章均为原创,转载请以链接形式标明本文地址

No comments yet.

Leave a comment

Search

文章分类

Links

Meta