Skip to main content

Java

Mastering Conversions Between Java LocalDate and ZonedDateTime

Learn how to convert LocalDate to ZonedDateTime in Java and back: atStartOfDay(), atTime(), UTC conversion, DST-safe patterns, and a real-world date-range query example across timezones — with annotated code and a quick-reference table.

Java: Converting LocalDateTime to ZonedDateTime Correctly

Learn every way to convert LocalDateTime to ZonedDateTime in Java: atZone(), atOffset(), UTC conversion, DST gap and overlap handling, and reverse conversion back to LocalDateTime — with annotated code and a complete reference table.

Jersey REST API – Complete File Upload and Download Example

Build a complete file-upload REST endpoint with Jersey 3.x: single file, multiple files, HTML form testing, curl commands, file-size limits, and a download endpoint. Includes production-hardening tips for cloud storage and MIME validation.

Mastering Maven: How to Create Your Own Custom Archetypes

Build a custom Maven archetype from scratch: create the descriptor, add Velocity-templated source files, install locally, generate a new Spring Boot project from it, and deploy to a team-shared repository. Step-by-step with working code.

A Practical Guide to Formatting ZonedDateTime in Java

Master formatting ZonedDateTime in Java with DateTimeFormatter: ISO formatters, custom ofPattern() strings, timezone conversion, parsing, and a full pattern reference table — with annotated code and sample output.