// the find
lihengming/spring-boot-api-project-seed
:seedling::rocket:一个基于Spring Boot & MyBatis的种子项目,用于快速构建中小型API、RESTful API项目~
A Spring Boot and MyBatis seed project for developers starting a small or mid-sized REST API made mostly of single-table CRUD. The README is Chinese-only and the last push was December 2023, so check every dependency version before copying anything.
- The code generator is the most useful part. FreeMarker templates in src/test/resources/generator/template produce the model, mapper, service, service impl and controller from a table name, and you can switch between the POST and RESTful controller templates in one method. The templates are deliberately basic, so you will rewrite them to match your house style, but that is still less boilerplate to write by hand.
- The response envelope is consistent. Result and ResultGenerator produce one shape, and a central handler turns a thrown ServiceException into a {code, message} body, so controllers don't need try/catch blocks.
- The generic AbstractService and Mapper base classes in core/ mean single-table CRUD is inherited rather than written. With PageHelper on top, simple list and paging endpoints need no hand-written SQL.
- Nothing has been pushed since December 2023, and the README reads like a stack from several years earlier (Fastjson, the Druid starter, a Jianshu link for Spring Boot). Fastjson in particular has a long history of deserialization CVEs, and the README presents it as a feature, so check the versions before you adopt any of it.
- The README mentions only 'simple interface signature authentication' and does not describe the scheme. Treat it as a placeholder. Anything exposed beyond an internal network needs a real auth design, and you would be writing that yourself.
- The generator lives under src/test and runs as a main method against a live JDBC connection, so it is a one-off scaffolding step, not part of the build. Expect to edit the connection settings by hand each time you use it.