Home / Spring Boot / Web and REST
Web and REST
Build REST APIs, validate input, handle errors, work with JSON and files, document and call APIs, and go reactive.
REST ControllersA REST controller receives HTTP requests, calls your service layer and returns data (usually JSON).Validation and Exception HandlingNever trust input.Spring MVC InternalsWhen a request reaches your controller, many components work behind the scenes.JSON with Jackson: Customization and PitfallsSpring Boot converts objects to JSON and back with Jackson.File Upload and DownloadUploading files looks easy but has serious security and memory issues.Calling Other APIs: RestClient and WebClientMost applications call other services.API Documentation with OpenAPI and Swagger UIA REST API without documentation is hard to use.Reactive Programming with Spring WebFluxWebFlux is the non-blocking web stack of Spring.