Caused by: java.io.EOFException
at java.base/java.io.RandomAccessFile.readFully(Unknown Source)
at org.nutz.plugins.ip2region.impl.RandomAccessFileDBReader.readFully(RandomAccessFileDBReader.java:24)
at org.nutz.plugins.ip2region.DbSearcher.binarySearch(DbSearcher.java:336)
at org.nutz.plugins.ip2region.DbSearcher.binarySearch(DbSearcher.java:391)
at com.polarisex.ip2region.IP2regionTemplate.binarySearch(IP2regionTemplate.java:142)
at com.polarisex.ip2region.Application.test(Application.java:35)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:363)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:307)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
... 17 more
异常:
文件是从github下载的最新的1.9的ip库, 配置: