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 - 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Simplify logging boilerplate code3m 42s
-
(Locked)
Cleaning up code and releasing resources3m 13s
-
(Locked)
Caching expensive one-time calculations3m 36s
-
(Locked)
Shorten your exception handling with SneakyThrows4m 50s
-
(Locked)
Challenge: Apply logging and cleanup2m 50s
-
(Locked)
Solution: Apply logging and cleanup3m 54s
-
(Locked)
-