Spring4 MVC GeoIP2 REST API with Swagger API Documentation.
- STS(or maven)
- tomcat server
- GeoIP2 database (mmdb)
$ git clone https://github.com/tsungtwu/spring-geoip2-rest-api.git
Format: MaxMind binary format
-
Downlaod From official website: link
-
Copy to
src/main/resources
-
Change mmdb path in GeoipCityService
- import as Maven project
- change context root to "/"
- run on server
$ sh deploy.sh
- visit http://localhost:8080/