Removed the large Geo Location File - GeoLite2-City.mmdb from code and it's references.
This commit is contained in:
parent
9bcb0c4b1b
commit
d4d3ac77f8
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue