first commit
This commit is contained in:
@ -28,8 +28,9 @@ public class IpConfig {
|
||||
ClassPathResource classPathResource = new ClassPathResource("ip2region.xdb");
|
||||
InputStream inputStream = classPathResource.getInputStream();
|
||||
IpUtil.setSearcher(Searcher.newWithBuffer(IoUtil.read(inputStream).toByteArray()));
|
||||
log.info("加载IP离线库到成功");
|
||||
log.info("加载IP离线库到内存成功");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
log.error("加载IP离线库到内存失败, 请联系管理员!");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user