其中DAO_CONFIG_FILE为绝对地址
我们必须设置locator.setConfigLocation("file"),默认是用Classpath的方式,但Classpath方式在web project中总会出现这样那样的问题
否则会出现空指针异常













JFigIF daoConfig=JFig.getInstance(locator);
Properties prop=daoConfig.getSectionAsProperties("DAO");