All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mars.jdbc.util.JdbcConfigUtil Maven / Gradle / Ivy

package com.mars.jdbc.util;

import com.mars.core.base.config.MarsConfig;
import com.mars.core.util.MarsConfiguration;

import java.util.List;
import java.util.Properties;

/**
 * JDBC配置
 */
public class JdbcConfigUtil {

    /**
     * 获取JDBC配置信息
     *
     * @return 配置信息
     */
    public static List getJdbcConfig() throws Exception {
        try {
            MarsConfig jsonObject = MarsConfiguration.getConfig();
            List propertiesList = jsonObject.jdbcProperties();
            return propertiesList;
        } catch (Exception e) {
            throw new Exception("从配置文件中读取jdbc模块配置出错",e);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy