Spring-boot-based Rest microservices framework

Source: Internet
Author: User

At the weekend at home research Spring-boot, referring to some of the open source projects on GitHub, a rest microservices framework, take it to the people, for the people, on GitHub open source, the address is as follows:


The main features are as follows:


Data access

DAO uses MyBatis 3.3.0 + tk.mybatis generic Mapper3.1.3 to support transaction rollback

Database initialization Script

See Src/mybatis-generator/ddl.sql

Data entity code generation

Using Mybatis-generator 1.3.2 generation, generate script see src/mybatis-generator/gen.sh

Web container

Embedded Tomcat container with gzip compression turned on by default

Logging and monitoring

Parameters for all controller layers use AOP to automatically log logs,

Parameter check

Parameter objects are automatically verified by annotations

return results

The service results are returned in JSON format, and if the service layer has an exception, the results are returned with ErrorCode and Errordesc, regardless of whether the service-side method executes successfully or not, it returns the execution result and the service-side time-consuming

Access address

Http://localhost:8080/ping This is the test address, after the app launches, the Browse this address should return:

1 {2 3     "data": "Running", 4     "ErrorCode": null,5     "Errordesc": null,6     "Elapsedmilliseconds":? 0,7     " Success ": True8 9}

Other GitHub reference projects:







Spring-boot-based Rest microservices framework

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.