Coder Social home page Coder Social logo

multi-thread-ftp's Introduction

多线程上传文件到ftp

  使用多线程跑数据 # 使用方式

添加配置

   在启动的地方 加上配置:
   @ComponentScan(value = {"org.dsg"})

application.properties 配置

   spring.client.fileName=
   spring.client.fileDataCount=300
   spring.client.dataSplit=\\001
   spring.client.statSplit=|
   spring.client.tmpdir=/tmp/test/tab_json001
   spring.client.fileType=java,jar
   spring.client.url=192.168.24.250
   spring.client.port=21
   spring.client.user=ftp1
   spring.client.password=ftp1
   spring.client.path=/dsg/tab0130
   spring.client.excludeFields=HIS_DATE, HIS_TIME, HIS_LOGIN, HIS_ORDER_ITEM_ID, HIS_TYPE
   spring.client.excludePartitionFeild=true

使用方式

加上pom.xml依赖

   <dependency>
        <groupId>org.dsg</groupId>
        <artifactId>multi-thread-ftp</artifactId>
        <version>0.0.1-SNAPSHOT</version>
   </dependency>

调用

@Service
public class PutToFtpRunnerTest {

    @Autowired
    private PutToFtpRunner putToFtpRunner;
}

multi-thread-ftp's People

Contributors

poemp avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.