How gf-huanchupk/springbootlearning works
This repository is a collection of independent Spring Boot and Spring Cloud learning examples, not one integrated application. Its examples cover CRUD and configuration, security, messaging, observability, and distributed transactions. The clearest end-to-end workflow is Seata purchase: a business request triggers storage deduction and order creation; order creation persists an order and requests an account debit. Other edges are limited to relationships shown in sampled source or the source index; unsampled README capabilities are represented as separate subsystems without guessed wiring.
Main entry points: BusinessService.java Purchase Orchestrator · EmployeeController.java Employee Cache · HelloController.java Starter Demo API · StorageController.java Storage Endpoint
Components 27
Spring Boot Examples
- Hello Examples
springboot-first-application/src/main/java/com/gf/controller/HelloController.java - Employee Cache
springboot-cache/src/main/java/com/gf/controller/EmployeeController.java - Employee Service
springboot-cache/src/main/java/com/gf/service/EmployeeService.java - MyBatis Employee
springboot-mybatis/src/main/java/com/gf/controller/EmployeeController.java - Configuration Models
springboot-config/src/main/java/com/gf/entity/Person.java - Custom Starter
springboot-custom-starter/hello-spring-boot-starter-autoconfigurer/src/main/java/com/gf/service/HelloService.java - Starter Demo API
springboot-custom-starter/hello-spring-boot-starter-test/src/main/java/com/gf/controller/HelloController.java - JSR303 Validation
springboot-jsr303/src/main/java/com/itwolfed/controller/UserController.java
Security Examples
- JWT Security
springboot-jwt/src/main/java/com/gf/config/MyInvocationSecurityMetadataSourceService.java - OAuth2 Security
springboot-security-oauth2/src/main/java/com/gf/config/AuthorizationServerConfiguration.java - OAuth JWT Servers
springboot-security-oauth2-jwt - Spring Security
springboot-security/src/main/java/com/gf/config/SecurityConfig.java
Messaging Examples
- RabbitMQ Example
springboot-rabbitmq/src/main/java/com/gf/service/MQService.java - RocketMQ Messages
springboot-rocketmq-message/src/main/java/com/itwolfed/msg/Producer.java
Distributed Transactions
- Purchase Orchestrator
springboot-seata/sbm-business-service/src/main/java/com/gf/service/BusinessService.java - Storage Endpoint
springboot-seata/sbm-storage-service/src/main/java/com/gf/controller/StorageController.java - Storage Service
springboot-seata/sbm-storage-service/src/main/java/com/gf/service/StorageService.java - Order Service
springboot-seata/sbm-order-service/src/main/java/com/gf/service/OrderService.java - Account Service
springboot-seata/sbm-account-service/src/main/java/com/gf/service/AccountService.java
Operations And Cloud
- Spring Boot Admin
springboot-admin - Eureka Server
springboot-admin/sc-eureka-server/src/main/java/com/gf/ScEurekaServerApplication.java - Apollo Configuration
springboot-apollo/src/main/java/com/gf/controller/HelloController.java - Prometheus Actuator
springboot-actuator-prometheus/src/main/java/com/gf/SpringbootActuatorPrometheusDemoApplication.java - Elasticsearch Example
springboot-elasticsearch/src/main/java/com/gf/repository/BookRepository.java - ELK Example
springboot-elk/src/main/java/com/gf/SpringbootElkApplication.java - Docker Example
springboot-docker/src/main/java/com/gf/SpringbootDockerApplication.java
Other components
- API User
Connections 10
- API User → Employee Cache: requests
springboot-cache/src/main/java/com/gf/controller/EmployeeController.java - Employee Cache → Employee Service: calls
springboot-cache/src/main/java/com/gf/controller/EmployeeController.java - API User → Starter Demo API: requests
springboot-custom-starter/hello-spring-boot-starter-test/src/main/java/com/gf/controller/HelloController.java - Starter Demo API → Custom Starter: uses
springboot-custom-starter/hello-spring-boot-starter-test/src/main/java/com/gf/controller/HelloController.java - API User → Purchase Orchestrator: purchases
springboot-seata/sbm-business-service/src/main/java/com/gf/service/BusinessService.java - Purchase Orchestrator → Storage Endpoint: deducts stock
springboot-seata/sbm-business-service/src/main/java/com/gf/service/BusinessService.java - Purchase Orchestrator → Order Service: creates order
springboot-seata/sbm-business-service/src/main/java/com/gf/service/BusinessService.java - Storage Endpoint → Storage Service: calls
springboot-seata/sbm-storage-service/src/main/java/com/gf/controller/StorageController.java - Order Service → Account Service: debits account
- JWT Security → API User: resolves roles
springboot-jwt/src/main/java/com/gf/config/MyInvocationSecurityMetadataSourceService.java