From d4d3ac77f8e47bb44fbf6917ac4a4a16514f9f17 Mon Sep 17 00:00:00 2001 From: anuragkumawat Date: Fri, 3 Sep 2021 02:23:16 +0530 Subject: [PATCH] Removed the large Geo Location File - GeoLite2-City.mmdb from code and it's references. --- .../src/test/java/com/baeldung/geoip/GeoIpIntegrationTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-web-modules/spring-mvc-xml/src/test/java/com/baeldung/geoip/GeoIpIntegrationTest.java b/spring-web-modules/spring-mvc-xml/src/test/java/com/baeldung/geoip/GeoIpIntegrationTest.java index 0aa23842b1..206e9b6e52 100644 --- a/spring-web-modules/spring-mvc-xml/src/test/java/com/baeldung/geoip/GeoIpIntegrationTest.java +++ b/spring-web-modules/spring-mvc-xml/src/test/java/com/baeldung/geoip/GeoIpIntegrationTest.java @@ -16,7 +16,7 @@ public class GeoIpIntegrationTest { public void givenIP_whenFetchingCity_thenReturnsCityData() throws IOException, GeoIp2Exception { ClassLoader classLoader = getClass().getClassLoader(); - File database = new File(classLoader.getResource("GeoLite2-City.mmdb").getFile()); + File database = new File("your-path-to-db-file"); DatabaseReader dbReader = new DatabaseReader.Builder(database).build(); InetAddress ipAddress = InetAddress.getByName("google.com");