Commit 17aa7972 authored by renjie's avatar renjie

资源url

parent 331ff5b5
...@@ -437,7 +437,7 @@ public class IpResourceServiceImpl implements IpResourceService { ...@@ -437,7 +437,7 @@ public class IpResourceServiceImpl implements IpResourceService {
@Override @Override
public void setIpOptions() { public void setIpOptions() {
String path = ClassLoader.getSystemResource("/root/browser/ipOptions.json").getPath(); String path = ClassLoader.getSystemResource("ipOptions.json").getPath();
IpOptions jsonObject = JSONObject.parseObject(FileUtil.read(new File(path), "UTF-8"), IpOptions.class); IpOptions jsonObject = JSONObject.parseObject(FileUtil.read(new File(path), "UTF-8"), IpOptions.class);
ipOptionsRepository.save(jsonObject); ipOptionsRepository.save(jsonObject);
} }
......
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