📄 databaseproperty.java
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package ActiveObject.core;import java.io.FileInputStream;import java.io.IOException;import java.util.Properties;import java.util.logging.Level;import java.util.logging.Logger;/** * * @author tanjiazhang */public class DataBaseProperty { private static java.util.Properties properties = null; static { properties = new Properties(); try { properties.load(new FileInputStream("database.ini")); } catch (IOException ex) { Logger.getLogger(DataBaseProperty.class.getName()).log(Level.SEVERE, null, ex); } } public static final String getProperty(String key) { return properties.getProperty(key); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -