1 Star 0 Fork 0

孟凡霄/CRUD-springboot-mysql-redis-rabbitmq

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

CRUD-springboot-mysql-redis-rabbitmq

This is a modern spring boot CRUD application that has a fully functional & secured user management system and it uses rabbitmq for event-driven updates, redis for caching and mysql as a database.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

To build and run the application you need :

Running the app locally

There are several ways to run a Spring Boot application on your local machine. One way is to execute the main method in the com.app.crud.DemoApplication class from your IDE.

Alternatively you can use the Spring Boot Maven plugin like so:

mvn spring-boot:run

MySQL

  1. Create a database in your MySQL instance.
  2. Update the application.yaml file in the src/main/resources folder with the URL, username and password for your MySQL instance. The table schema will be created for you in the database.

RabbitMQ

Real time event updates are managed in RabbitMQ. Two scenarios here :

# Updating the list when a user is created
# Updating the list when a user is deleted

Redis

We are using Redis as our caching system. The configuration in application.yaml remains the same.

Swagger

We used Swagger to easily generate REST API documentation for our project.

Endpoints

Method Url Description
GET /info info / heartbeat - provided by boot
GET /health application health - provided by boot
GET /v2/api-docs swagger json
GET /swagger-ui.html swagger html
GET /api/users/{id} get user by id
GET /api/users get N users with an offset
POST /api/users create user
PUT /api/users/{id} update user
DELETE /api/users/{id} delete user
GET /api/users/me current user
POST /auth/signin authenticate user

空文件

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/pingfanrenbiji/CRUD-springboot-mysql-redis-rabbitmq.git
git@gitee.com:pingfanrenbiji/CRUD-springboot-mysql-redis-rabbitmq.git
pingfanrenbiji
CRUD-springboot-mysql-redis-rabbitmq
CRUD-springboot-mysql-redis-rabbitmq
master

搜索帮助