How chentong2015/springbootapplications works
This repository is a collection of Spring Boot examples and starter templates demonstrating HTTP endpoints, configuration and resources, auto-configuration, metrics, static resources, and a Tomcat-based application. The principal workflow is an HTTP request dispatched to a mapped controller, which returns a response; individual examples cover request inputs, redirects, versioning, and response forms. Source excerpts are partial and the README is empty, so links between unsampled subsystems are omitted unless supported by the tree or sampled code.
Main entry points: response_entity Response entities · private_endpoints Private endpoints · HttpRequestController.java Request handling · controller_rest REST request inputs
Components 31
HTTP examples
- Request handling
spring-boot-app/src/main/java/com/springboot/main/controller/HttpRequestController.java - REST request inputs
spring-boot-app/src/main/java/com/springboot/main/controller/controller_rest - Controller forms
spring-boot-app/src/main/java/com/springboot/main/controller/controller_vs_rest - Response entities
spring-boot-app/src/main/java/com/springboot/main/controller/response_entity - API versioning
spring-boot-app/src/main/java/com/springboot/main/controller/versioning/ApiVersioningController.java - Redirects
spring-boot-app/src/main/java/com/springboot/main/controller/RedirectController.java - Private endpoints
spring-boot-app/src/main/java/com/springboot/main/controller/private_endpoints - Private service
spring-boot-app/src/main/java/com/springboot/main/service/PrivateService.java - Response model
spring-boot-app/src/main/java/com/springboot/main/model/ResponseObject.java
Configuration and resources
- Application entry
spring-boot-app/src/main/java/com/springboot/main/SpringBootStarterApplication.java - Application configuration
spring-boot-app/src/main/java/com/springboot/main/config/ApplicationConfiguration.java - Custom properties
spring-boot-app/src/main/java/com/springboot/main/properties - Resource endpoints
spring-boot-app/src/main/java/com/springboot/main/resources/ResourcesController.java - Resource loading
spring-boot-app/src/main/java/com/springboot/main/resources/ResourcesPropertyLoader.java
Boot extensions
- Auto-configuration
spring-boot-autoconfigure/src/main/java/auto_configure - Configuration selector
spring-boot-autoconfigure/src/main/java/auto_configure_selector - Conditional configuration
spring-boot-autoconfigure/src/main/java/conditional_config/ConditionalConfiguration.java - Metrics application
spring-boot-metrics/src/main/java/org/springboot/metrics/SpringBootMetricsApp.java - Disk metrics
spring-boot-metrics/src/main/java/org/springboot/metrics/DiskSpaceMetrics.java
Server and static web
- Static resources app
spring-boot-static-resources/src/main/java/org/springboot/resource/WebStaticResourceApp.java - Static resource configuration
spring-boot-static-resources/src/main/java/org/springboot/resource/WebConfiguration.java - Tomcat starter
spring-boot-tomcat-container/src/main/java/com/springboot/tomcat/SpringTomcatStarter.java - Tomcat application
spring-boot-tomcat-container/src/main/java/com/springboot/MySpringBootApplication.java - Home endpoint
spring-boot-tomcat-container/src/main/java/com/springboot/controller/HomeController.java
Starter templates
- Template server
template-skeleton/spring-boot-server/src/main/java/com/springboot/server/ServerController.java - Server configuration
template-skeleton/spring-boot-server/src/main/java/com/springboot/server/ServerConfiguration.java - Server enablement
template-skeleton/spring-boot-server/src/main/java/com/springboot/server/EnableSpringBootServer.java - Shared demo API
template-skeleton/spring-common-api/src/main/java/com/springboot/api/DemoClass.java - Template client
template-skeleton/spring-boot-client/src/main/java/com/springboot/client/SpringClientApplication.java - Client configuration
template-skeleton/spring-boot-client/src/main/java/com/springboot/client/ClientConfiguration.java
Other components
- HTTP client
Connections 21
- HTTP client → Request handling: sends request
- HTTP client → REST request inputs: sends request
- HTTP client → Controller forms: sends request
- HTTP client → Response entities: sends request
- HTTP client → API versioning: sends request
- HTTP client → Redirects: sends request
- HTTP client → Private endpoints: sends request
- HTTP client → Resource endpoints: sends request
- Request handling → HTTP client: returns response
- REST request inputs → HTTP client: returns response
- Controller forms → HTTP client: returns response
- Response entities → Response model: creates response
- Response entities → HTTP client: returns response
- API versioning → HTTP client: returns response
- Redirects → HTTP client: returns redirect
- Private endpoints → Private service: calls
- Private endpoints → HTTP client: returns response
- Resource endpoints → HTTP client: returns content
- Template server → Shared demo API: calls
- HTTP client → Home endpoint: requests home
- Home endpoint → HTTP client: returns response