Commit 25875f0b by YANGYANG

comm 读写文件路径修改

parent d47a1179
...@@ -34,7 +34,7 @@ public class PropertieUtil { ...@@ -34,7 +34,7 @@ public class PropertieUtil {
String filePath = token_url; String filePath = token_url;
// 获取配置文件 // 获取配置文件
Properties pps = new Properties(); Properties pps = new Properties();
FileInputStream fileInputStream = new FileInputStream(filePath); InputStream fileInputStream = PropertieUtil.class.getResourceAsStream(filePath);
InputStream in = new BufferedInputStream(fileInputStream); InputStream in = new BufferedInputStream(fileInputStream);
InputStreamReader inputStreamReader = new InputStreamReader(in, "UTF-8"); InputStreamReader inputStreamReader = new InputStreamReader(in, "UTF-8");
pps.load(inputStreamReader); pps.load(inputStreamReader);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment