?? dbconst.java
字號:
package connect;import java.io.IOException;import java.io.InputStream;import java.util.Properties;public final class DBConst { public static String CLASSNAME = ""; public static String URL = ""; public static String NAME = ""; public static String PWD = ""; public DBConst() { Properties prop = new Properties(); InputStream in = this.getClass().getResourceAsStream("DB.properties"); try { prop.load(in); } catch (IOException e) { e.printStackTrace(); } CLASSNAME = prop.getProperty("className"); URL = prop.getProperty("url"); NAME = prop.getProperty("name"); PWD = prop.getProperty("password"); System.out.println("userDB ----> DB connection load."); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -