This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.doraemoney.wk.quotecheckplatform.service.support; | |
import com.alibaba.fastjson.JSONObject; | |
import org.asynchttpclient.AsyncHttpClient; | |
import org.asynchttpclient.DefaultAsyncHttpClient; | |
import org.asynchttpclient.DefaultAsyncHttpClientConfig; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.boot.context.properties.ConfigurationProperties; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.doraemoney.wk.quotecheckplatform.util; | |
import java.util.concurrent.ForkJoinPool; | |
import java.util.concurrent.RecursiveAction; | |
import java.util.concurrent.TimeUnit; | |
/** | |
* created by wanglichao@163.com on 2018/10/26. | |
*/ | |
public class PrintTask extends RecursiveAction{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package liq.utils; | |
import java.io.File; | |
import java.util.Arrays; | |
import java.util.Enumeration; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.Map; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
安装软件 | |
jdk | |
jdk版本: jdk-8u171-linux-x64.tar.gz | |
#安装路径: | |
tar -zxf jdk-8u171-linux-x64.tar.gz | |
ln -s /app/java/jdk1.8.0_171 /app/java/default | |
#设置环境变量 | |
vim ~/.bash_profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package apps.fis.ftp; | |
import org.apache.commons.lang.StringUtils; | |
import org.apache.commons.net.ftp.FTPClient; | |
import org.apache.commons.net.ftp.FTPClientConfig; | |
import org.apache.commons.net.ftp.FTPFile; | |
import org.apache.commons.net.ftp.FTPReply; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.doraemoney.test.own; | |
import java.util.concurrent.ForkJoinPool; | |
import java.util.concurrent.ForkJoinTask; | |
import java.util.concurrent.RecursiveTask; | |
import com.doraemoney.core.utils.ThreadPoolUtils; | |
/** | |
* Created By WangLichao On 2017年5月26日. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created By WangLichao On 2016年12月26日. | |
*/ | |
public class ListableFutureTest { | |
private ExecutorService executor = Executors.newFixedThreadPool(1); | |
private ListeningExecutorService service = MoreExecutors.listeningDecorator(executor); | |
public static void main(String[] args){ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created By WangLichao On 2016年12月7日. | |
*/ | |
public class ThreadCheckProcess { | |
private static final Logger beforeLoanlog = LoggerFactory.getLogger("beforeLoan");// 贷前 | |
private ExecutorService exec; // 线程池 | |
private int cpuNum; // 线程数 | |
private List<Future<Integer>> tasks = new ArrayList<Future<Integer>>(); // 接收线程处理的返回值 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package generator; | |
import org.mybatis.generator.api.MyBatisGenerator; | |
import org.mybatis.generator.config.Configuration; | |
import org.mybatis.generator.config.xml.ConfigurationParser; | |
import org.mybatis.generator.exception.XMLParserException; | |
import org.mybatis.generator.internal.DefaultShellCallback; | |
import java.io.File; | |
import java.io.IOException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sentMail; | |
import org.apache.poi.xssf.usermodel.XSSFCell; | |
import org.apache.poi.xssf.usermodel.XSSFSheet; | |
import org.apache.poi.xssf.usermodel.XSSFWorkbook; | |
import org.springframework.mail.SimpleMailMessage; | |
import org.springframework.mail.javamail.JavaMailSenderImpl; | |
import java.io.*; |