Giter Site home page Giter Site logo

springboot-template's Introduction

项目名称

该项目是一个基于Spring Boot框架的开发模板,旨在帮助开发者迅速的进行开发,不必花费时间在大量的重复工作。

版本信息

包含了主要项的版本信息,更多内容请参考pom.xml

版本
JDK 1.8
springboot 2.7.7
MySQL 8.0.31
Redis 6.2.6
Maven 3.8.6
Mybatis-plus 3.5.3
knife4j 4.0.13

使用

相关配置

需要修改以下配置信息来配置您自己的服务

需要修改的内容已在代码文件中使用TODO标识

  1. Redis
  2. MySQL
  3. aliyun AK SK
  4. knife4j

内容

项目主要包含以下内容:

  • Logback日志配置
  • 阿里云SMS配置
  • 线程池配置
  • Mybatis-plus
  • 统一返回结果
  • 全局异常处理、统一错误枚举
  • Dockerfile文件
  • AOP权限认证以及日志处理
  • 用户控制层接口(邮箱、手机号登录注册,更新信息、头像,以及CRUD)
  • JWT双Token登录
  • 常用工具类
  • Knife4j接口文档: 访问http://localhost:8080/api/doc.html
  • OSS上传Manager
  • javaMail发送邮件
  • JSR303参数校验

如何运行

  1. git clone https://github.com/adorabled4/springboot-template.git
  2. 修改数据库和Redis配置信息:application.yml
  3. 构建项目:mvn clean package
  4. 运行项目:java -jar target/template.jar
  5. 构建镜像:docker build -f Dockerfile -t template:v1 .
  6. 运行容器:docker run -d -p 8080:8080 --name tempalte template:v1

许可证

该项目基于MIT许可证开源,详情请查看LICENSE文件

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.