I put qqwry.dat
in src/main/resource
in my SpringBoot project. In my class, I tried:
IPSeeker.class.getResource("/qqwry.dat"), IPSeeker.class.getClassLoader().getSystemResource("qqwry.dat")
Both is OK running on my own computer with tomcat embebed in SpringBoot Tomcat. But when I build them into JAR and run in Docker never worked. Very bothing.