Spring 5.0 By Example
上QQ阅读APP看书,第一时间看更新

Models

Before we start to create our class, we will add the Lombok dependency in our project. It is a fantastic library which provides some interesting things such as GET/SET at compilation time, the Val keyword to make variables final, @Data to make a class with some default methods like getters/setters, equals, and hashCode.