Copy a working Spring Boot + MySQL example to start your own web application project.
Learn how to set up Redis caching or Elasticsearch search by running a complete, tested demo.
Study how to implement OAuth login or role-based security in Spring Boot with real code.
Reference how to configure RabbitMQ, Kafka, or Quartz job scheduling in a Spring Boot app.
Each example requires its own external service (MySQL, Redis, RabbitMQ, etc.) to be running; Docker Compose files may help but are not guaranteed for all 66+ examples.
spring-boot-demo is a large collection of practical Spring Boot code examples designed to help Java developers learn how to integrate Spring Boot with the most common technologies and libraries used in real-world web applications. It is entirely written in Chinese and is aimed at developers who are learning Spring Boot and want working, runnable code to study rather than documentation to read. Spring Boot is a Java framework that dramatically simplifies building web applications and microservices by handling most of the complex configuration automatically. The challenge for beginners is that it still requires knowing how to wire it together with databases, caching layers, messaging systems, security tools, search engines, and many other components, and that wiring is where people get stuck. This repository solves that by providing over 66 standalone demo modules, each focused on one specific integration. You can find examples for connecting to MySQL using different approaches (JdbcTemplate, JPA, MyBatis, MyBatis-Plus), setting up Redis or Ehcache for caching, sending emails, running scheduled and distributed jobs with Quartz or XXL-Job, implementing role-based security with Spring Security, integrating Elasticsearch for search, using RabbitMQ or Kafka for message queues, building real-time features with WebSocket, adding third-party login via OAuth, managing database schema migrations with Flyway, containerizing with Docker, and generating API documentation with Swagger. Each module is independent with its own README explaining how to set it up and run it, and each is a working application you can clone, configure, and run locally with IntelliJ IDEA. You would use this repository when you are a Java developer getting started with Spring Boot and want a concrete, tested example of how to connect it to a specific technology, rather than piecing it together from scattered blog posts. The tech stack is Java 8+, Spring Boot 2.x, Maven, and MySQL.
Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.