wangliang 2 年之前
父节点
当前提交
fabe4b8edc
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      themis-common/src/main/java/com/qmth/themis/common/util/IpUtil.java

+ 6 - 2
themis-common/src/main/java/com/qmth/themis/common/util/IpUtil.java

@@ -124,8 +124,12 @@ public class IpUtil {
      */
      */
     public static Searcher getSearcher() {
     public static Searcher getSearcher() {
         try {
         try {
-            Enumeration<URL> enumeration = IpUtil.class.getClassLoader().getResources("ip2region.xdb");
-            log.info("1111");
+            Enumeration<URL> urls = IpUtil.class.getClassLoader().getResources("ip2region.xdb");
+            int i = 1;
+            while (urls.hasMoreElements()) {
+                URL url = urls.nextElement();
+                log.info("===={}, {}", i++, url.getPath());
+            }
         } catch (IOException e) {
         } catch (IOException e) {
             e.printStackTrace();
             e.printStackTrace();
         }
         }