mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2025-12-16 12:23:03 +00:00
31 lines
583 B
Java
31 lines
583 B
Java
package cn.qaiu.lz;
|
|
|
|
import cn.qaiu.db.pool.JDBCPoolInit;
|
|
import cn.qaiu.vx.core.Deploy;
|
|
import io.vertx.core.json.JsonObject;
|
|
|
|
|
|
/**
|
|
* 程序入口
|
|
* <br>Create date 2021-05-08 13:00:01
|
|
*
|
|
* @author qiu
|
|
*/
|
|
public class AppMain {
|
|
|
|
public static void main(String[] args) {
|
|
Deploy.instance().start(args, AppMain::exec);
|
|
}
|
|
|
|
/**
|
|
* 初始化数据库
|
|
*
|
|
* @param jsonObject 配置
|
|
*/
|
|
private static void exec(JsonObject jsonObject) {
|
|
JDBCPoolInit.builder().config(jsonObject.getJsonObject("dataSource")).build().initPool();
|
|
}
|
|
|
|
|
|
}
|