Skip to content

andbin.dev

My technical blog on software development

  • Home
  • About
  • Contact
  • Resources
andbin.dev
My technical blog on software development

Java

The Java programming language and anything related to the Java ecosystem.

Java

Overview of all Java versions

Byandbin September 12, 2023September 12, 2023

Do you need a quick overview of all Java versions? Please check out the friendly and helpful Java Versions Cheat Sheet! It is developed and actively maintained by me.

Read More Overview of all Java versions

Java

Two cases of wrong inheritance usage

Byandbin August 12, 2023August 12, 2023

Inheritance and correlated polymorphism are among the most important concepts in OOP languages like Java, Kotlin, C#, and others. In this article, I will explain two typical cases of wrong inheritance usage that anyone should not imitate.

Read More Two cases of wrong inheritance usage

Java / Spring Boot

Dumping the Spring Environment in Spring Boot

Byandbin July 29, 2023July 29, 2023

When developing Spring Boot applications, I often need to check if property values are correctly received from configuration files, environment variables, or other sources. There are various ways to perform this task. This article will present my solution for dumping the Spring Environment using a simple application listener.

Read More Dumping the Spring Environment in Spring Boot

Java

A hypothetical mapStream for the Java Stream API

Byandbin July 4, 2023July 14, 2023

On my blog, I generally write articles on Java programming topics that already exist. This time, however, I want to write about a new hypothetical mapStream method that currently doesn’t exist in the Java Stream API but could be interesting to add.

Read More A hypothetical mapStream for the Java Stream API

Java

Iterating two collections simultaneously

Byandbin July 2, 2023July 3, 2023

In this article, I will discuss iterating two collections simultaneously. This is not a very recurring topic in Java, but sometimes it may be necessary. The main goal of this article, in particular, is to show how to create some good code designs for greater code reuse.

Read More Iterating two collections simultaneously

Java

Using Spring’s @Value annotation with Lombok

Byandbin June 16, 2023June 18, 2023

I worked several times on Spring Boot applications that use Lombok, a famous code-generation tool based on annotation processing. In this article, I will discuss using Spring’s @Value annotation in a “component” class annotated with Lombok.

Read More Using Spring’s @Value annotation with Lombok

Java

Why some collections cannot be heterogeneous

Byandbin June 4, 2023June 5, 2023

In this relatively short article, I will discuss an intriguing and noteworthy topic about collections in Java: why some standard Java collections cannot be heterogeneous. In other words, why they cannot contain objects of different types.

Read More Why some collections cannot be heterogeneous

Java / Spring Boot

Spring Boot: configuring data size values

Byandbin May 22, 2023June 18, 2023

In Spring Boot applications, it’s not uncommon to configure a value representing a size in bytes, for example, a buffer size, a file size limit, etc. In this article, I will describe how to use the DataSize class provided by Spring Framework to configure and handle data size values.

Read More Spring Boot: configuring data size values

Java / Spring Boot

Spring Boot: custom “info” contributors for Actuator

Byandbin May 1, 2023May 21, 2023

In the previous article Spring Boot: configuring the Actuator “info” endpoint, I explained some fundamental concepts about configuring and using the “info” endpoint provided by Spring Boot Actuator. In this article, it’s time to see how to implement custom info contributors.

Read More Spring Boot: custom “info” contributors for Actuator

Java

Getting started with the logback logging library

Byandbin April 8, 2023April 10, 2023

Logback is a known Java logging library and an alternative to the better-known log4j library. I already wrote about an “advanced” feature of logback in a previous article. In this article, I will provide a practical introduction so you can start quickly and easily with logback.

Read More Getting started with the logback logging library

Page navigation

1 2 Next PageNext

Recent Posts

  • Overview of all Java versions
  • Two cases of wrong inheritance usage
  • Dumping the Spring Environment in Spring Boot
  • A hypothetical mapStream for the Java Stream API
  • Iterating two collections simultaneously

Archives

  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • October 2022
  • September 2022
  • August 2022
  • July 2022

Categories

  • General
  • Java
  • Java / Spring Boot

Except where otherwise noted, all content on this site is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Creative Commons Attribution-ShareAlike Logo

Privacy/Cookie Policy

© 2023 andbin.dev - WordPress Theme by Kadence WP

Scroll to top
  • Home
  • About
  • Contact
  • Resources