Articles

  1. Simplifying Database Queries with Spring Data JPA Derived Query MethodsSpring Data JPA can remove much of the repetitive code involved in database access. Instead of writing a repository implementation for every common filter, you…
  2. Setting Up a Spring Boot Admin Server for Application MonitoringProduction applications need more than logs and occasional manual checks. A Spring Boot Admin Server provides a central dashboard for Spring Boot services,…
  3. Using Java Optional to avoid NullPointerException in clean codeNullPointerException often appears when a method silently receives a missing value. The fix is rarely a larger method; it is often a forgotten null check…
  4. Writing REST APIs with Spring MVC and PATCH methodsA PATCH request updates selected fields of an existing resource without replacing the entire representation. This differs from PUT, which normally submits and…
  5. Building a File Upload Service with Spring BootA file upload service with Spring Boot and multipart files gives web and mobile clients a consistent way to send documents, images, and records. Multipart…
  6. Java stream collectors: grouping and partitioning in depthJava stream collectors are terminal operations that turn a stream into a collection or summary. Grouping and partitioning transform individual records into…
  7. Auditing Entity Changes with Hibernate EnversJava applications often change records that later need to be explained, including customer profiles, order states, balances, permissions, and configuration. A…
  8. Implementing OAuth2 login with Spring Security and GitHubSpring Security can implement OAuth2 login with GitHub, giving users a familiar sign-in without storing their GitHub password. It handles the browser redirect,…
  9. How to Manage Application Properties Securely in Spring BootSpring Boot makes configuration convenient through application.properties and application.yml, but convenience can become a security risk when passwords, API…
  10. Closed hierarchies for safer Java domain designJava sealed interfaces and classes, introduced in Java 17, give application code a precise way to describe a closed set of permitted subtypes. Instead of…