Spring Boot Based on the API, RESTful API project skeleton

Today, the sharing of knowledge-based Spring Boot the API, RESTful API project skeleton with you.

1 Based on Spring Boot the API, RESTful API project skeleton

Recent Spring Boot with MyBatis, General Mapper plug-ins, PageHelper pagination plug-in API even made a few small and medium sized projects, found that doing this framework, tools with them to develop this project is indeed very comfortable, the team's response is also good. In the process of construction and development projects are also summarized some small experience, to share with you.

Prior to the development of an API project, build the project, the introduction of dependency, configure the framework of these basic living natural Needless to say, usually in order to speed up the development progress of the project (go home) also need to package some of the commonly used classes and tools, such as unified response results package, consistent exception handling, the interface signature verification, based on the difference between additions and deletions to change the method of packaging, the underlying code generation tools, etc., with these projects to start.

However, next time do similar projects to those above may also engage in it again, although usually take over change to change, but it is quite a waste of time. So, you can use object-oriented abstraction, encapsulation of ideas, extracting common package of such projects became a seed project (estimated that most companies will have a lot of similar seed project), so next time developing similar projects direct iteration on it on the seed project, reduce duplication of effort meaningless.

After the line on related projects, I took some time to do some streamlining of the seed project, and has put the project to GitHub share above, if you are going to do a similar project, you can try to clone down.
Address & project using the document:
https://github.com/lihengming/spring-boot-api-project-seed
If problems are found in use or have any good suggestions, then welcome to raise issue or pr together to improve it.

Features & offers

Best Practice project structure, configuration files, streamlined POM
html>

Guess you like

Origin blog.csdn.net/weixin_45794138/article/details/104849387