mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-08-02 05:20:15 +08:00
Avoid process being occupied and optimize database initialization speed
This commit is contained in:
@ -29,9 +29,9 @@ public class Application {
|
||||
|
||||
public static void main(String[] args) {
|
||||
ConfigUtils.initProcess();
|
||||
CompletableFuture.runAsync(() -> {
|
||||
new Thread(() -> {
|
||||
Dbutils.init();
|
||||
});
|
||||
}).start();
|
||||
SpringApplication.run(Application.class, args);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user