如何将外部配置文件读入HashMap,请指教,谢谢!
zh950 2005-10-20 03:03:42 private Map handleHash=new HashMap();
//Initialize mappings:should be implemented here
//This will read mapping definitions and populate handlerHash
handleHash.put("/login.html",new aa());
handleHash.put("/error.html",new bb());
我想把写入handleHash的内容写成外部配置文件,如何写?
从外部配置文件读入HashMap,又该如何实现?
菜鸟一个,请多指教!
谢谢!