Giter Club home page Giter Club logo

spring-boot-rest-framework's Introduction

spring-boot-rest-framework

基于spring-boot的rest微服务框架

####数据访问层

dao采用mybatis 3.3.0 + tk.mybatis通用Mapper3.1.3 , 支持事务回滚

####web容器

内嵌tomcat容器,默认开启gzip压缩

####日志及监控

所有controller层的参数利用AOP机制自动记录日志及自动计算服务端耗时(毫秒数)

####参数校验

参数对象采用注解方式自动校验,支持自定义注解

####返回结果

服务结果以json格式返回,如果服务层发生异常,返回结果中自带errorCode及errorDesc,不论服务端方法执行成功与否,均会返回执行结果及服务端耗时

####浏览地址

程序入口类为spring.boot.rest.demo.main.DemoRestApplication,应用启动后,浏览http://localhost:8080/ping,正常情况下,应该返回类似:

{
    "data": "running",
    "errorCode": null,
    "errorDesc": null,
    "elapsedMilliseconds": ​0,
    "success": true
}

使用过程中如有任何问题请联系:菩提树下的杨过

spring-boot-rest-framework's People

Contributors

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