systemconfig.java

来自「一个完整的网络订餐系统」· Java 代码 · 共 28 行

JAVA
28
字号
package com.common;


public class SystemConfig
{

    public SystemConfig()
    {
    }

    public static String getDBConnection()
    {
        ApplicationContext appcxt = ApplicationContext.getInstance();
        String strDBConn = appcxt.getDburl();
        strDBConn = strDBConn + ";user=" + appcxt.getUser();
        strDBConn = strDBConn + ";password=" + appcxt.getPassword();
        strDBConn = strDBConn + ";";
        return strDBConn;
    }

    public static String getDbDriver()
    {
      ApplicationContext appcxt = ApplicationContext.getInstance();
      String dbDriver = appcxt.getDbDriver();
      return dbDriver;
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?