Lombok @Log4j, @Slf4j and Other Log Annotations

1. Overview In this tutorial, we're going to examine Lombok log annotations like @Slf4j, @Log4j or @Log. 2. Use Log Annotations Lombok provides sev...

Continue Reading

Lombok @SneakyThrows

1. Overview In this tutorial, we'll look at the Lombok @SneakyThrows annotation. 2. Maven Dependency We'll first add the Lombok maven dependency: <...

Continue Reading

Lombok @Data and @Value

1. Overview In this article, we'll look at the @Data and @Value annotations of Lombok. @Data and @Value are two shortcut annotations that bring a l...

Continue Reading

Lombok @AllArgsConstructor, @NoArgsConstructor and @RequiredArgsConstructor

1. Overview In this tutorial, we'll look at the Lombok @AllArgsConstructor, @NoArgsConstructor, and @RequiredArgsConstructor annotations. When we u...

Continue Reading

Lombok @Builder

1. Overview In this tutorial, we're going to look at the Lombok @Builder annotation to generate a builder for our class. It is a handy annotation e...

Continue Reading

Lombok @NonNull

1. Overview It is important to include null checks into both generated and handwritten methods. In this tutorial, we'll look at the Lombok @NonNull...

Continue Reading

Lombok @EqualsAndHashCode

1. Overview In this tutorial, we'll look at the Lombok @EqualsAndHashCode annotation to generate the equals and hashCode methods automatically. 2. ...

Continue Reading

Lombok @ToString

1. Introduction In this tutorial, we'll look at the Lombok @ToString annotation to generate the toString method automatically. 2. Maven Dependency ...

Continue Reading

Lombok @Getter and @Setter

1. Overview In this tutorial, we'll look at the Lombok @Getter and @Setter annotations to generate getter and setter methods automatically. 2. Use ...

Continue Reading