Giter Site home page Giter Site logo

gotoseeworld / spring-boot-api-seedling Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zoctan/spring-boot-api-seedling

0.0 0.0 0.0 245 KB

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

License: Apache License 2.0

Java 93.02% FreeMarker 2.75% Shell 0.12% TSQL 4.12%

spring-boot-api-seedling's Introduction

Spring Boot API Seedling

stars license

简介

本项目修改自:spring-boot-api-project-seed

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

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

添加的内容包括:

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

代码规范参考阿里巴巴 Java 开发手册,安装 Alibaba Java Coding Guidelines 插件。

风格规范使用 Google,安装 google-java-format 插件。

注解工具:Lombok,安装同名 Idea 插件。

版本

依赖 版本
Java 1.8
SpringBoot 2.1.7

快速开始

# 克隆项目

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

# 配置代码生成器

对 test/java 包内的代码生成器 CodeGenerator 进行配置 导入 test/resources/sql 目录下的开发环境 dev 的数据库文件 *.sql

# 根据表名生成代码

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

# last

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

技术选型&文档

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

相关项目

更新记录

2019-08-13 更新依赖版本,更换 Tomcat 容器为 Jetty,修复 RSA 密钥文件无法读取问题,添加文件上传控制器。

2018-11-29 更新依赖版本,配置改为 yml ,完善单元测试,若干小修改。

2018-07-21 增加 Jasypt 自定义配置和配置密码加密,Tomcat 打包,修改 RSA 工具和添加相应配置,部分小修改。

2018-07-15 增加 DTO 层,避免 DO 层污染,若干小修改。

2018-07-11 添加了可自定义缓存过期时间的注解,修改了数据表 user 为 account,还有其他细节。

2018-05-27 更新 SpringBoot 等版本。

spring-boot-api-seedling's People

Contributors

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