jsp 获取配置信息

  java 方式

Properties pt=new Properties();
    String realpath = request.getRealPath("/WEB-INF/classes");  
    FileInputStream in = new FileInputStream(realpath+"/conf/x5-base-db.properties");  
    //pt.load(in);
    in.close();

原文地址:https://www.cnblogs.com/lengzhijun/p/7737314.html