
How to Make REST API Endpoints Idempotent in Java Safely
Make POST endpoints safe to retry with an Idempotency-Key header, a unique constraint and a stored response, and know which methods are idempotent already.
Controllers, request binding, validation and exception handlers for web apps built on the servlet stack.

Make POST endpoints safe to retry with an Idempotency-Key header, a unique constraint and a stored response, and know which methods are idempotent already.

Fix a 403 Forbidden on POST, PUT and DELETE in Spring Security by sending the CSRF token, configuring it for APIs or checking roles and CORS preflight.

Choose synchronous requests or asynchronous messages between Java services based on whether the caller needs an answer now, and design for failure either way.

Return RFC 9457 problem details from a Spring Boot API: ProblemDetail, ErrorResponse, a ControllerAdvice, extension members and enabling it globally.

Create a Play Framework application in Java with sbt, add a route, a controller and a template, run it in dev mode and read what Play generates.

Create a Micronaut 4 application, add a REST controller and a service, run it and test it, and see how compile-time injection differs from Spring.

Fix Jackson's Unrecognized field not marked as ignorable error by deciding whether to accept unknown properties, rename a field or fix the client.

Stop cross-site request forgery with Spring Security's CSRF tokens, SameSite cookies and Origin checks, and know when a stateless API can skip the token.

Follow a request through the Struts 2 filter, action mapping, interceptor stack, your action and the result, and see how it compares with Spring MVC.

Compare Vaadin with Thymeleaf plus htmx for Java teams: server side state or HTML over the wire, component depth, testing, SEO and scaling behaviour.

Fix the Jackson error about Java 8 date/time types by registering the time module, choosing ISO strings over timestamps and setting the format in one place.

Build a small Struts 2 web application with Maven, a login form, an action class and a struts.xml mapping, and run it on a servlet container.
We send one email when a new post is published. No spam.