项目作者: tsungtwu

项目描述 :
Spring MVC REST GeoIP2 API with Swagger Documentation.
高级语言: Java
项目地址: git://github.com/tsungtwu/spring-geoip2-rest-api.git
创建时间: 2017-10-17T04:08:13Z
项目社区:https://github.com/tsungtwu/spring-geoip2-rest-api

开源协议:

下载


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

  1. $ git clone https://github.com/tsungtwu/spring-geoip2-rest-api.git

Downloading The Database

Format: MaxMind binary format

  1. Downlaod From official website: link

  2. Copy to src/main/resources

  3. 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

  1. $ sh deploy.sh

API Usage

Swagger Documentation