feature(tools):切换工具类
This commit is contained in:
@@ -2,10 +2,10 @@ package com.nis.test;
|
||||
|
||||
|
||||
|
||||
import com.zdjizhi.crypt.AESUtil;
|
||||
import org.apache.commons.codec.binary.Base64;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.nis.crypt.AESUtil;
|
||||
|
||||
public class CryptTest {
|
||||
|
||||
|
||||
27
src/test/java/com/nis/test/IpLocationTest.java
Normal file
27
src/test/java/com/nis/test/IpLocationTest.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package com.nis.test;/**
|
||||
* Created by dell on 2018-10-18.
|
||||
*/
|
||||
|
||||
import com.alibaba.druid.sql.parser.SymbolTable;
|
||||
import com.zdjizhi.utils.IpLookup;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @ClassName IpLocationTest
|
||||
* @Description TODO
|
||||
* @Author dell
|
||||
* @Date 2018-10-18 11:56
|
||||
* @Version 1.0
|
||||
**/
|
||||
public class IpLocationTest {
|
||||
|
||||
@Test
|
||||
public void testCountryLookup() {
|
||||
IpLookup ipLookup = new IpLookup.Builder(true).build();
|
||||
|
||||
|
||||
System.out.println( ipLookup.countryLookup("8.8.8.8"));
|
||||
|
||||
}
|
||||
}
|
||||
@@ -8,6 +8,7 @@
|
||||
*/
|
||||
package com.nis.test;
|
||||
|
||||
import com.zdjizhi.utils.StringUtil;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
@@ -15,7 +16,7 @@ import org.springframework.web.client.RestTemplate;
|
||||
|
||||
import com.nis.domain.ControlLog;
|
||||
import com.nis.domain.Page;
|
||||
import com.nis.util.StringUtil;
|
||||
|
||||
|
||||
/**
|
||||
* @ClassName: RestfulTest
|
||||
|
||||
Reference in New Issue
Block a user