项目作者: tsungtwu
项目描述 :
Spring MVC REST GeoIP2 API with Swagger Documentation.
高级语言: Java
项目地址: git://github.com/tsungtwu/spring-geoip2-rest-api.git
Spring4 MVC GeoIP2 REST API
Spring4 MVC GeoIP2 REST API with Swagger API Documentation.
Requirements
- STS(or maven)
- tomcat server
- GeoIP2 database (mmdb)
Getting Started
Downloading The Source Code
$ git clone https://github.com/tsungtwu/spring-geoip2-rest-api.git
Downloading The Database
Format: MaxMind binary format
Downlaod From official website: link
Copy to src/main/resources
- Change mmdb path in GeoipCityService
Deploy REST API Server
Run with STS
- import as Maven project
- change context root to “/“
- run on server
Run with docker
$ sh deploy.sh
API Usage
Swagger Documentation