Copy a working Spring Boot and Spring Security module to add login and role-based access control to a Java web app.
Use the WebSocket example to add real-time push notifications or live updates to a Spring Boot service.
Reference the Redis caching module to add fast in-memory caching to an existing Spring Boot application.
Bootstrap Kafka message streaming in a Spring Boot project using the ready-made example module as a starting point.
All documentation is in Chinese, each module needs its own infrastructure (Redis, Kafka, etc.) running locally.
This repository is a collection of small Spring Boot example projects, each one demonstrating how to combine the Spring Boot framework with a different library or tool. Spring Boot is a popular Java framework for building web applications and services. The individual modules in this repo are companion code for a series of Chinese-language blog posts, and the README links each module to its corresponding article. The modules cover a range of common tasks in Java web development. There are several examples for Spring Security, the standard Spring library for handling login, user roles, and access control. These include both basic setups and more advanced patterns like RESTful permission management and dynamic role configuration stored in a database. Another set covers WebSocket, which is a way to push real-time updates from a server to a browser, with examples for broadcast-style messaging and direct point-to-point messages. Other modules show how to configure caching using Redis and Guava, how to integrate MyBatis for database access, how to use Shiro as an alternative to Spring Security for authorization, how to generate automatic API documentation with Swagger, how to run scheduled background jobs with Quartz, and how to connect Spring Boot to Kafka (a message streaming system) and Elasticsearch (a search engine). There is also an example showing how to configure a single application to talk to multiple different databases, and a module demonstrating integration with Dubbo (a distributed service framework). All content is written in Chinese. The README is a brief index pointing to blog posts rather than standalone documentation. The project appears to be a personal learning and sharing effort, and the author notes in the README that issue responses may be slow.
← 527515025 on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.