Java class naming conventions, rules, and best practice

Every programmer agrees naming classes is highly important for code readability. Proper naming decrease the time needed to understand the…

5 years ago

What is Java object equals contract?

The object equals contract indicates that when two objects are equal, their hash codes must also be the same. It’s…

5 years ago

Spring bean thread safety guide

Is Spring controller/service/singleton thread-safe? It’s a commonly asked question by Spring newcomers and probably a must-have warm-up question on job…

5 years ago

Running code on Spring Boot startup

Spring Boot does a lot of configuration automatically for us but sooner or later you’ll have to do some custom…

5 years ago

Java optional parameters in practice

When you design a method in a Java class, some parameters may be optional for its execution. No matter it…

5 years ago

HTTP cache with Spring examples

Caching is a powerful feature of the HTTP protocol but for some reason, it’s mainly considered for static resources like…

6 years ago

@ParameterizedTest with null values in @CvsSource

Writing parameterized tests in JUnit 4 was pretty cumbersome. JUnit 5 introduced several useful improvements to the framework and running…

6 years ago

Feature toggle in Spring Boot 2

Whether you like it or not, software development is a collaborative activity. Integration work has always been demonized and treated…

6 years ago

Java 8 Optional best practices and wrong usage

It’s been almost two years since Java 8 was officially released and many excellent articles about new enhancements and related…

6 years ago

Sending HTML email with Spring Boot and Thymeleaf

Sending an email from the backend application part is a quite common use case in the world of enterprise applications.…

6 years ago