From the course: Learning Lombok: Streamlined Java Programming

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Challenge: Apply logging and cleanup

Challenge: Apply logging and cleanup - Spring Tutorial

From the course: Learning Lombok: Streamlined Java Programming

Challenge: Apply logging and cleanup

(bright music) - [Instructor] Well, here we are again and this is our last code challenge. Awesome. For this code challenge, we'll be using Project Code 03 05 Challenge, Lombok Demo in IntelliJ. Specifically, you'll be putting into practice modifying classes with utilizing the SLF4J annotation, the CleanUp annotation and the @SneakyThrows annotation. The first task you'll need to complete is applying the SLF4J annotation to the following classes: AddressController, EmployeeController, EmployeeImageController and FibonacciController. In the service package, apply it to the AddressService, the EmployeeImageService and the FibonacciService. This task is not too difficult, but be sure to remember to remove the static logger variable that was created at the top of each class. The second task is a little bit more complicated. You'll need to open up the FileService and locate the readFile method and apply the @Cleanup…

Contents