Removed the large Geo Location File - GeoLite2-City.mmdb from code and it's references.

This commit is contained in:
anuragkumawat 2021-09-03 02:23:16 +05:30
parent 9bcb0c4b1b
commit d4d3ac77f8
1 changed files with 1 additions and 1 deletions

View File

@ -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");