?? propertymgr.java
字號:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package com.shopping.util;import java.io.IOException;import java.util.Properties;/** * * @author ruirui */public class PropertyMgr {private static Properties props = new Properties(); static { try { props.load(PropertyMgr.class.getClassLoader().getResourceAsStream("resoure/shopping.properties")); } catch (IOException e1) { e1.printStackTrace(); } } public static String getProps(String key) { return props.getProperty(key); } private PropertyMgr() {} //測試語句 //public static void main(String[] args){// System.out.println(getProps("dbName")); //} }
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -