sysconfig.java
来自「asp制作的在线考试系统」· Java 代码 · 共 41 行
JAVA
41 行
package cn.hxex.exam.config;
import java.util.Hashtable;
/**
* 系统参数对象
*
* @author galaxy
*
*/
public class SysConfig
{
private Hashtable<String, String> properties;
/**
* 增加系统参数
* @param property 增加的参数对象
*/
public void addProperty( Property property )
{
if( properties==null )
properties = new Hashtable<String, String>();
properties.put( property.getName(), property.getValue() );
}
/**
* 根据名字得到系统参数的值
*
* @param name 参数的名称
* @return 参数的值
*/
public String getPropertyValue( String name )
{
if( properties==null ) return null;
return properties.get( name );
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?