⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 websitesrc.java

📁 java网站源代码,有数据库的操作代码,业务逻辑代码等内容
💻 JAVA
字号:
package com.itsv.gankao.common;import java.io.File;import java.io.FileInputStream;import java.util.Properties;import java.util.Enumeration;public class WebSiteSrc {/** * @preserve */  //public static String DBDriver;  public static String DBDriver_Test;/** * @preserve */  public static String DBConnection_Test;/** * @preserve */  public static String DBOwner;/** * @preserve */  public static String DBUser_Test;/** * @preserve */  public static String DBPassword_Test;/** * @preserve */  public static String LOGPATH;  public static String sImagePath;/** * @preserve */  public static String STMP;  /**   * @preserve   */  public static String PicturesPath;  public static String PerNumber;  public static String qWebRoot;  /**   * 期刊发布的上传路径   * @preserve   */    public static String QKstorePath;  /**   * @preserve   */  public WebSiteSrc() {    String path = System.getProperty("java.home");    String propertiesFile = path + "/gkcp.properties";    try {      Properties p = new Properties();      FileInputStream fis = new FileInputStream(new File(propertiesFile));      p.load(fis);      //DBDriver = p.getProperty("DBDriver");      DBDriver_Test = p.getProperty("DBDriver_Test");      DBConnection_Test = p.getProperty("DBConnection_Test");//      DBOwner = p.getProperty("DBOwner");      DBUser_Test = p.getProperty("DBUser_Test");      DBPassword_Test = p.getProperty("DBPassword_Test");      STMP = p.getProperty("stmp");      LOGPATH = p.getProperty("logPath");      PicturesPath = p.getProperty("PicturesPath");      sImagePath = p.getProperty("image_path");      qWebRoot = p.getProperty("qWebRoot");    }    catch (Exception e) {      e.printStackTrace();    }  }}

⌨️ 快捷键说明

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