Latest Updates

Documenting code, one commit at a time.

Java 10 posts
×

Taming Spring Boot's Exit: Ensuring Your Application Closes Gracefully

Ever found yourself staring at a terminal, wondering why your Spring Boot application just won't terminate? You hit Ctrl+C, but the process lingers, a digital ghost refusing to leave the system. This common developer frustration points to an often-overlooked aspect of application design: graceful shutdown.

In the kays-core-springboot project, a recent pull request addressed just such a

Read more

Avoiding NullPointers: Securing Your Spring API Updates with Path Variable IDs

When building robust APIs, especially with Spring, ensuring that your update operations reliably target the correct resource is paramount. A common pitfall that can lead to unexpected behavior or even NullPointerExceptions involves how resource identifiers are handled. We recently tackled such an issue within the kays-core-springboot project, addressing an update operation for user profiles.

Read more

Sharpening Your Data Access Tests in Spring Boot

Developing robust applications often hinges on the reliability of your data layer. However, testing this critical component can sometimes be challenging, leading to either overly complex setups or, worse, insufficient coverage. For our work on the kays_springboot application, ensuring the integrity of data interactions is paramount.

The Pitfalls of Untargeted Database Tests

Read more

Streamlining User Profile Management in Spring Boot Applications

Introduction

Managing user profiles efficiently is crucial for any modern application. This post dives into how to structure your Spring Boot application for optimal user profile handling, focusing on DTOs, service layer methods, and controller setup.

DTO Adjustments and Creation

Data Transfer Objects (DTOs) play a vital role in transporting data between different layers of your

Read more
Java Spring

Securing Spring Boot Applications: A Practical Approach

When developing applications with the kays_springboot project, security is a paramount concern. While convenience methods like withDefaultPasswordEncoder() might seem appealing for initial setup, they're a major no-no for production environments. Let's explore a more robust and secure approach to configuring Spring Security.

Read more

Enhancing Data Integrity: Implementing NotNull Validation in Kays Springboot

Introduction

In the kays_springboot project, ensuring data integrity is paramount. Recently, a critical refactoring step was taken to enhance the reliability of our data models by enforcing non-null constraints on key variables.

The Challenge

Previously, the price variable in one of our core data models lacked a NotNull annotation. This omission could lead to unexpected behavior and

Read more