What is the significance of @DeleteMapping in Spring Boot?
@DeleteMapping maps HTTP DELETE requests to controller methods in Spring MVC. Learn status codes, idempotency, error handling and security for REST delete endpoints.
Spread Your Knowledge. Questions with answers, tutorials and articles, newest first.
@DeleteMapping maps HTTP DELETE requests to controller methods in Spring MVC. Learn status codes, idempotency, error handling and security for REST delete endpoints.
@CreatedDate lets Spring Data set an entity's creation time on first save. See the auditing setup, a reusable base class, AuditorAware and why the field can stay null.
A complete Spring Boot setup for Spring Data JPA auditing, from the audit columns and base entity to the current user and a test.
Map each HTTP verb to a controller method with @GetMapping, @PostMapping, @PutMapping, @PatchMapping and @DeleteMapping, and return correct status codes.
TransactionTemplate wraps a transaction manager in a callback API so you can run code transactionally without begin, commit and rollback boilerplate.
Learn how to start, commit and roll back Spring transactions in code with TransactionTemplate and PlatformTransactionManager, with working examples.
@Valid triggers Jakarta Bean Validation on Spring Boot request bodies and nested objects. Learn setup, error handling with ProblemDetail and common pitfalls.
@Transactional runs a method inside a database transaction and rolls back on runtime exceptions. See propagation, isolation and common pitfalls.
Add the validation starter, annotate DTOs with Jakarta constraints, use @Valid on the request body and return clean 400 errors with ProblemDetail.
Define an event record, publish it with ApplicationEventPublisher and handle it with @EventListener. Covers async listeners, transactional events and conditions.
In Spring Boot, @RequestBody turns a JSON or XML request body into a Java object. See auto-configuration, validation with @Valid and common errors.
Publish events with ApplicationEventPublisher and handle them with @EventListener, including async and transaction-aware listeners.
Configure multipart size limits in Spring Boot, handle MaxUploadSizeExceededException globally and avoid the proxy and Tomcat pitfalls.
Replace the default thread-per-task executor with a ThreadPoolTaskExecutor and use it from @Async. Covers sizing, queue behaviour and rejection policies.
MultipartFile is Spring's abstraction for an uploaded file in a multipart request. Learn its methods, safe saving, size limits and upload security.
@Async runs Spring bean methods on a separate thread. Learn to enable it, return CompletableFuture, configure executors and avoid proxy and thread pitfalls.
Build secure file upload and download endpoints in Spring Boot using MultipartFile, a storage service that blocks path traversal and streamed responses.
Learn how Spring MVC frees the servlet thread with Callable, DeferredResult and CompletableFuture, and how to configure executors, timeouts and error handling.
Learn how Pageable (the request) and Page (the response) work together in Spring Boot, including Slice, DTO mapping and stable JSON serialization.
Learn how @SessionAttributes stores Spring MVC model attributes in the session, with a multi-step form example, SessionStatus cleanup and pitfalls.