spring-boot-examples
about learning Spring Boot via examples. Spring Boot 教程、技术栈示例代码,快速简单上手教程。
A collection of hands-on Spring Boot example projects demonstrating specific features like databases, messaging, scheduling, and Docker, learn by reading and running minimal code samples.
This repository is a collection of hands-on example projects for learning Spring Boot, a Java framework that makes it faster to build web applications and services by handling a lot of configuration automatically. The README is written primarily in Chinese and targets developers who want to understand Spring Boot by reading and running small, focused code samples rather than reading abstract documentation.
Each sub-project in the collection demonstrates a specific feature or integration in isolation — for example, how to set up scheduled tasks, send email, handle file uploads, connect to a database using Mybatis or JPA (two common Java database tools), use MongoDB or Redis for data storage, send messages via RabbitMQ (a message queue — a system for passing data between parts of an application asynchronously), and run the whole thing inside Docker containers. All examples have been updated to Spring Boot 3.0.
Someone would use this repository when they are getting started with Spring Boot and want to see a working, minimal example of one specific thing before integrating it into their own project. It is especially useful for developers who learn best by modifying running code rather than starting from scratch. The codebase is in Java and uses Maven as the build tool.
Where it fits
- Copy a working example of scheduled tasks, email sending, or file uploads into your own Spring Boot project.
- See how to connect a Spring Boot app to MongoDB, Redis, or a relational database using Mybatis or JPA.
- Learn how to set up RabbitMQ messaging or Docker containerization by running a minimal working sample.
- Understand Spring Boot configuration by modifying and running small, focused code examples rather than reading documentation.