
Micronaut Serialization Instead of Jackson Setup Guide
Switch a Micronaut 4 application from Jackson databind to Micronaut Serialization: dependencies, the Serdeable annotation, differences, GraalVM and limits.
Controllers, request binding, validation and exception handlers for web apps built on the servlet stack.

Switch a Micronaut 4 application from Jackson databind to Micronaut Serialization: dependencies, the Serdeable annotation, differences, GraalVM and limits.

Return correct HTTP status codes from Spring MVC with ResponseStatus, ResponseEntity, ResponseStatusException and handlers, and know which fits.

Understand Jakarta Servlets directly: the container lifecycle, HttpServlet, filters, listeners, sessions and async processing, with a minimal app on Tomcat.

Call other HTTP services from Quarkus with the REST Client: an annotated interface, configuration, headers, error mapping, timeouts and testing with mocks.

Design API pagination, filtering and sorting: query parameters, offset versus cursor, allowed sort fields, response envelopes, links and limits in Spring.

Set HTTP cache headers in Spring: Cache-Control, max-age, no-store, private versus public, Vary, stale-while-revalidate and static resource caching.

Generate a Java client or server interfaces from an OpenAPI spec with OpenAPI Generator in Maven and Gradle, and keep generated code out of git.

Fix Read timed out errors between Spring services by setting connect and read timeouts on RestClient and Feign, sizing pools and finding the slow side.

Move a Struts application to Spring MVC one URL at a time: add Spring beside Struts, route by path, port actions, share services and retire Struts.

Why Hibernate throws LazyInitializationException outside a transaction, how to confirm which cause you have and the fixes in order of preference.

Handle dates and time zones in Spring REST APIs: use Instant and ISO 8601, set Jackson and database zones, bind query dates and test across time zones.

Prevent server side request forgery in Java: allowlists for outbound URLs, blocking private and metadata addresses, DNS rebinding and redirect handling.
We send one email when a new post is published. No spam.