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

📄 databaseproperty.java

📁 一个Java持久层类库
💻 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 + -