Coder Social home page Coder Social logo

minsuoqingcheng / common-project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yz-java/common-project

0.0 1.0 0.0 98 KB

Java后端常用工具类、缓存接口、消息队列接口、第三方支付接口封装;Restful接口参数验证,错误信息友好提示。

Java 100.00%

common-project's Introduction

common-project

Java后端常用工具类、缓存接口、消息队列接口、第三方支付接口封装;Restful接口参数验证,错误信息友好提示。

[TOC]

1.缓存(common-cache):

① 基于JVM方法区数据缓存

② 基于redis进行数据缓存

2.消息队列(common-queue)

① 基于Java ArrayBlockingQueue

② 基于redis 发布订阅实现消息队列

▲ 后期会维护kafka和阿里巴巴RocketMQ

3.常用工具类(common-core)

网络类(HttpUtil)

时间类(DateUtils)

JSON类(JsonUtil)

安全类(MD5加密、AES加密、Base64编码、3DES加密、RSA加密、SHA256)

图片处理(GraphicsMagick)

...

4.Redis(common-redis)

①redis常用API接口(RedisUtil)

②基于redis实现分布式锁(RedisLockUtil)

5.微信、支付宝支付(common-pay)

使用PayFactory工厂类统一管理

①创建订单(createOrder)

②退款(refund)

③生成移动端调起微信和支付宝时所需要的参数(createPayParams)

④订单查询(queryOrder)

6.common-web

①请求参数转换(非Form表单或get+参数方式):

自定义web拦截器(DataSafeFilter),加密json数据解析为Map保存到HttpServletRequest
中;自定义HttpServletRequest包装类(IHttpServletRequestWrapper),将解析的Map数        
据保存到Parameter中

②基于hibernate-validator restful接口参数验证

QQ:208275451 邮箱:[email protected]

common-project's People

Watchers

chengliu 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.