import com.xkl.domain.Location; import com.xkl.tools.IPTools; import org.junit.Test; /** * Created by zhaoyue on 2017/4/15. */ public class IPToolsTest { @Test public void testGetIPLocation() { Location location = IPTools.getLocationWithIP("111.39.32.104"); System.out.println(location); } }