/bio

a simple biography project

Primary LanguageJava

博客项目后端API接口

Build Status

主要使用的技术

技术 版本 说明
Spring Boot 2.3.4 容器+MVC框架
Spring Security 2.3.4 认证和授权框架
Mybatis Plus 3.4.0 ORM框架
JWT 0.9.1 JWT登陆支持
Mybatis Plus Generator 3.4.0 数据层代码生成
Swagger-UI 3.0.0 文档生产工具
Redis 5.0 分布式缓存
Druid 1.2.1 数据库连接池
Lombok 1.18.12 简化对象封装工具
RabbitMQ 3.8.9 消息队列
Elasticsearch 7.10.0 搜索引擎

文件目录

├─bio.log # 日志目录
│  ├─debug
│  └─error
├─db # 数据库目录
├─src
│  ├─main
│  │  ├─java
│  │  │  └─com
│  │  │      └─example
│  │  │          └─bio
│  │  │              ├─common # 公用类
│  │  │              │  ├─annotation # 通用注解
│  │  │              │  ├─api # 对结果集封装
│  │  │              │  ├─aspect # Redis缓存切面
│  │  │              │  ├─component # RabbitMQ sender receiver
│  │  │              │  ├─config # 通用配置
│  │  │              │  ├─constant # 常量类
│  │  │              │  ├─constraint # 约束
│  │  │              │  ├─domain # 公用属性
│  │  │              │  ├─interceptor # 限流拦截器
│  │  │              │  ├─limiter # Redis限流实现
│  │  │              │  └─lock # Redission分布式锁实现限流
│  │  │              ├─config # 配置类
│  │  │              ├─controller # 前端控制器
│  │  │              ├─dto # 数据传输对象
│  │  │              ├─exception # 异常处理
│  │  │              ├─log # 日志处理
│  │  │              ├─mapper # mybatis-plus mapper接口
│  │  │              │  └─elasticsearch # elasticsearch repo
│  │  │              ├─model # 实体类
│  │  │              │  └─elasticsearch # elasticsearch 实体类
│  │  │              ├─security # 安全配置
│  │  │              │  ├─component # 权限过滤等组件
│  │  │              │  ├─config # 配置类
│  │  │              │  └─service # 安全服务类
│  │  │              ├─service # 服务
│  │  │              │  └─impl # 服务实现
│  │  │              ├─util # 工具类
│  │  │              └─vo # 数据展示对象
│  │  └─resources # 资源目录
│  │      ├─mapper # mapper.xml目录
│  │      ├─static # 静态资源
│  │      └─templates # thymeleaf 网页模板
│  └─test # 测试
│      └─java
│          └─com
│              └─example
│                  └─bio

搭建步骤

IDEA

安装mysql

安装Redis

安装RabbitMQ

安装Elasticsearch

启动项目