Posts tagged with #spring-boot

Spring Boot Profiles & Environments: @Profile, Environment-Specific Config

Manage environment-specific configuration in Spring Boot using profiles, @Profile annotation, and property file naming conventions.

Spring Boot Request & Response: @RequestBody, @ResponseBody, HttpEntity

Master Spring Boot request/response handling with @RequestBody, @ResponseBody, HttpEntity. Learn serialization, validation, common pitfalls, and security best practices.

@RestController & @RequestMapping in Spring Boot: HTTP Verbs, Path Variables

Master Spring Boot REST endpoint mapping: @RestController, @RequestMapping, @GetMapping, path variables, query params, and handler method signatures.

Spring Boot Scheduling & Async: @Scheduled, @Async, TaskExecutor

Learn Spring Boot task scheduling with @Scheduled, asynchronous processing with @Async, and custom TaskExecutor configuration.

Spring Boot Servlet Containers: Port, SSL/TLS, Graceful Shutdown

Master Spring Boot servlet container configuration: custom ports, SSL/TLS setup, and graceful shutdown for production-ready applications.

Spring Boot Slice Testing: Test Layers in Isolation

Isolate Spring Boot layers with slice testing: @WebMvcTest for web, @DataJpaTest for persistence, and @JsonTest for serialization testing.

SpringApplication: Customizing Startup, Banner, Event Listeners

Master SpringApplication lifecycle customization including startup sequence, custom banners, and application event listeners for boot-time control.

Spring Boot Test Stack: @SpringBootTest, @WebMvcTest, @DataJpaTest, @MockBean

Master Spring Boot testing annotations: compare @SpringBootTest vs @WebMvcTest vs @DataJpaTest, and learn @MockBean for effective unit testing.

Testing Spring Security: @WithMockUser and SecurityMockMvc

Learn how to test Spring Security: use @WithMockUser for authentication simulation and SecurityMockMvcRequestBuilders for endpoint security validation with MockMvc.