📄 viewmap.java
字号:
package com.hongsoft.res.util;
import java.io.File;
import java.util.HashMap;
import com.hongsoft.agile.Global;
public class ViewMap {
private static HashMap viewMap;
private static String url;
private static PropertiesReader pr = new PropertiesReader(Global.getConfigPath() + File.separator + "viewmap.properties");
/**
* 获取 pmes_vidw.map文件的信息
* @param key 关键字
* @return 对应关键字的值
*/
public static String getUrl(String key){
if (viewMap == null) {
viewMap = new HashMap();
}
if (viewMap.containsKey(key)) {
url = (String) viewMap.get(key);
}
else {
url = pr.getProperty(key);
viewMap.put(key, url);
}
return Global.getBaseUrl() + url;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -