public static Object getBean(String name) {
        return getApplicationContext().getBean(name);
    }
Get bean by name

@param name
@return
chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/util/ApplicationContextUtil.java