Commit 644a815f authored by renjie's avatar renjie

配置获取接口

parent a691501e
......@@ -375,7 +375,7 @@ public class IpResourceServiceImpl implements IpResourceService {
@Override
public void setIpOptions() {
String path = IpResourceServiceImpl.class.getResource("src/main/resources/ipOptions.json").getPath();
String path = IpResourceServiceImpl.class.getResource("ipOptions.json").getPath();
IpOptions jsonObject = JSONObject.parseObject(FileUtil.read(new File(path), "UTF-8"), IpOptions.class);
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