@Override
    public void onApplicationEvent(ApplicationFailedEvent event) {
        log.error("Failed to start, stop application", event.getException());
        SystemUtils.stop();
    }
Listener for application startup failure
The application failed to start. It just stopped tomcat and did not stop the application. Stop xia here.

@author Jiaju Zhuang
chat2db-server/chat2db-server-web-start/src/main/java/ai/chat2db/server/web/start/config/listener/FailedEventApplicationListener.java