Skip to content

🌿🛩基于Spring Boot的种子项目,用于快速构建API、RESTful API

License

Notifications You must be signed in to change notification settings

hihaol/spring-boot-api-seedling

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot API Seedling

简介

本项目与种子项目定位一致:快速构建中小型 API、RESTful API 项目,摆脱重复劳动,专注于业务代码的编写,减少加班。

种子项目本身很简洁,已经能满足很多基本需求,在此感谢种子作者。

我根据自己的需求继续添加了一些小功能,比如 API 的签名认证、调用文档等,所以就有了该 Seedling 项目。

添加的内容包括:

  • Spring Cache:缓存
  • Redis:缓存中间件
  • Swagger2:API 文档展示
  • Spring Security + JWT:对调用方签名认证
  • Jasypt:加密配置
  • 其他略

快速开始

# 克隆项目

git clone https://github.com/Zoctan/spring-boot-api-seedling.git

# 配置代码生成器

对 test/java 包内的代码生成器 CodeGenerator 进行配置 test/resources 目录下有数据库文件 seedling_dev.sql

# 根据表名生成代码

输入表名,运行 CodeGenerator.main() 方法,生成基础代码(观看种子项目的快速演示视频

# last

对开发环境配置文件 application-dev.properties 进行配置,启动项目,Have Fun Too:)

技术选型&文档

  1. Lombok(官方英文文档
  2. Spring Boot(种子项目作者的学习&使用指南 | 基础教程
  3. MyBatis(官方中文文档
  4. MyBatisb通用Mapper插件(官方中文文档
  5. MyBatis PageHelper分页插件(官方中文文档
  6. Druid Spring Boot Starter(官方中文文档
  7. Fastjson(官方中文文档 | W3CShool使用指南

相关项目

更新记录

2018-05-27 更新 Spring Boot 等版本

About

🌿🛩基于Spring Boot的种子项目,用于快速构建API、RESTful API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 96.0%
  • FreeMarker 4.0%