//读取配置文件
String path=request.getServletContext().getRealPath("/config/sysconfig.properties");
Properties pro = new Properties();
pro.load(new FileInputStream((path)));
String url=pro.getProperty("elasticsearch.url");
String path=request.getServletContext().getRealPath("/config/sysconfig.properties");
Properties pro = new Properties();
pro.load(new FileInputStream((path)));
String url=pro.getProperty("elasticsearch.url");
String index_name=pro.getProperty("elasticsearch.index");
//配置文件位置