Properties properties = new Properties();
File file = new File(request.getRealPath("/") +"//WEB-INF//classes//configs.properties");
FileInputStream fiStream = new FileInputStream(file);
InputStreamReader isReader = new InputStreamReader(fiStream,"utf-8");
properties.load(isReader);
String path = properties.getProperty("docpath");
jsp读取配置文件乱码解决
最新推荐文章于 2018-12-18 18:03:42 发布