liujie
2025-08-04 ddba15cfd1d654dc41de5dfdc587e12d96d84f4f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.stylefeng.guns.modular.shunfeng.util;
 
import java.io.IOException;
import java.util.Properties;
 
/**
 * 配置信息
 * 
 * @author TZj
 * @data 2017年8月03日
 * @version 1.0
 */
public class ParamUtil {
 
    /**
     * 获取配置信息
     */
    private static Properties properties = new Properties();
    static{
        try {
            //获取properties文件
            properties.load(ParamUtil.class.getClassLoader().getResourceAsStream("conf/param.properties"));
        } catch (IOException e) {e.printStackTrace();}
    }
    
    /**
     * 获取配置参数值
     * 
     * @param key
     * @return
     */
    public static String getValue(String key){        
        return (String)properties.get(key);
    }
    
}