feature(tools):切换工具类

This commit is contained in:
doufenghu
2018-10-18 19:19:59 +08:00
parent 7f392422ef
commit e8e9d093f3
59 changed files with 720 additions and 652 deletions

View File

@@ -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 {

View 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"));
}
}

View File

@@ -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