Giter VIP home page Giter VIP logo

tools's Introduction

tools-纯原创,可复用的工具类或常用的简单功能例子

java 网络编程 Netty 多线程 爬虫

目录  

1 集合  

1.1 同步FIFO队列  

2 资源生成

2.1 根据数据库表生成Mybatis的mapper.xml/dao/Po

3 编程方式访问Http资源

3.1 Http发送Post请求

4 Socket

4.1 Java.io.Socket
4.2 Netty带心跳重连机制的服务端
4.3 Netty带心跳重连机制的客户端

集合类工具

包路径:

package com.xiafei.tools.collections;

同步FIFO队列

 同步-基于数组实现的FIFO队列,比java库自带阻塞队列轻量级。

资源生成

  包路径:

package com.xiafei.tools.generatesource;

 根据数据库表生成Mybatis的mapper.xml/dao/Po  

  * 目前只支持Mysql数据的资源生成

  • 支持PO、Mapper、Dao的增量生成、覆盖、部分生成(只生成Dao或只生成Mapper)  

使用编程方式访问http资源

包路径:

package com.xiafei.tools.httpclient;

Http发送Post请求

  * 将数据放入Form-Data中的方式   * 将数据封装成Json串的方式

Socket

Java.io.Socket

Netty带心跳重连机制的服务端

Netty带心跳重连机制的客户端

未完成,待续

tools's People

Contributors

theoldqi avatar

Watchers

 avatar

Forkers

un-knower

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.