|
@@ -124,8 +124,12 @@ public class IpUtil {
|
|
|
*/
|
|
|
public static Searcher getSearcher() {
|
|
|
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) {
|
|
|
e.printStackTrace();
|
|
|
}
|