?? websitesrc.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 + -