Giter Site home page Giter Site logo

imaginary11 / rest-api Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 4.0 801 KB

基于SpringBoot的web框架,整合了常用的组件如mysql、redis、mongodb、elasticsearch、rabbitmq、quartz、freemaker、jsonrpc、ehcache等,提供基于centos6.x的自动化安装部署脚本、服务健康检查脚本,脚本实现技术为Makefile、shell、python2.x。

License: Apache License 2.0

Makefile 6.56% Shell 18.00% Python 6.70% Java 66.50% Smarty 2.23%
springboot elasticsearch redis mongodb rabbitmq ehcache quartz rest

rest-api's Introduction

(项目重构、之前的工程DELETE了,近期会补充完整)

API规范

REST 风格,格式 {模块}/{版本}/{资源} 如

接口名称 定义 协议
查询用户信息列表 /account/v1/user GET
查询用户详情 /account/v1/user/{user_id} GET
查询用户地址信息 /account/v1/user/{user_id}/address GET
新增用户信息 /account/v1/user POST
修改用户信息 /account/v1/user/{user_id} PUT
删除用户信息 /account/v1/user/{user_id} DELETE

概述

基于SpringBoot的web框架,整个了常用的组件如mysql、redis、mongodb、elasticsearch、rabbitmq、quartz、freemaker、jsonrpc、ehcache等,提供基于centos的自动化安装部署脚本、服务健康检查脚本,脚本实现技术为Makefile、shell、python2.x。

基础环境

  • Springboot 1.59

  • JDK 8

  • WEB容器 Undertow

编译部署

运行方式为jar包,打包方式为分包打包,主程序为一个单独的jar包和其余的第三方依赖包。执行make install 编译后,在目录下会根据pom文件版本判断生成多个安装包。

  • 全量安装包
    • 如果pom版本与当前主分支版本号一致,说明修改了pom文件,引入了第三方依赖包,此时会生成一个安装文件,即全量安装包。
  • 快速升级包
    • 如果pom版本与当前主分支版本号不一致,说明最新的提交未修改pom文件,没有引入第三方依赖包,此时会生成一个快速升级包和一个全量安装包。快速升级包只含有主程序和配置文件,体积小。

安装界面

组件支持

  • Cache
    • Redis
    • Ehcache
  • NC
    • Redis
    • RabbitMQ
  • DB
    • Mybatis
    • MongoDB
  • Template
    • Freemaker
  • Schedule Job
    • Quartz
  • Some Others
    • Interceptor
    • Logback
    • Auto Install And Deploy Script
    • And So on
    • Keep updating ...

rest-api's People

Contributors

imaginary11 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.