public static HikariConfig buildHikariConfig(String driverClassName, String jdbcUrl, String userName,
            String passWord) {
        HikariConfig hikariConfig = new HikariConfig();
        hikariConfig.setDriverClassName(driverClassName);
        hikariConfig.setJdbcUrl(jdbcUrl);
        hikariConfig.setUsername(userName);
        hikariConfig.setPassword(passWord);
        Configuration configuration = Configuration.getInstance();
        hikariConfig.setConnectionTimeout(configuration.get(KEY_DATASOURCE_CONNECTION_TIMEOUT,
                DEFAULT_CONNECTION_TIMEOUT));
        hikariConfig.addDataSourceProperty(CACHE_PREP_STMTS,
                configuration.get(KEY_CACHE_PREP_STMTS, DEFAULT_CACHE_PREP_STMTS));
        hikariConfig.addDataSourceProperty(PREP_STMT_CACHE_SIZE,
                configuration.get(KEY_PREP_STMT_CACHE_SIZE, DEFAULT_PREP_STMT_CACHE_SIZE));
        hikariConfig.addDataSourceProperty(PREP_STMT_CACHE_SQL_LIMIT,
                configuration.get(KEY_PREP_STMT_CACHE_SQL_LIMIT, DEFAULT_PREP_STMT_CACHE_SQL_LIMIT));
        hikariConfig.setMaximumPoolSize(
                configuration.get(KEY_DATASOURCE_POOL_SIZE,
                        DEFAULT_DATASOURCE_POOL_SIZE));
        return hikariConfig;
    }
Do build config
@param driverClass
@param jdbcUrl
@param userName
@param password
@return
inlong-audit/audit-service/src/main/java/org/apache/inlong/audit/service/utils/JdbcUtils.java