Adding lombok dependency and @Slf4j does not let use logger

You also need to add slf4j itself as a dependency to your project by including it in your pom file. All lombok features in the lombok.extern package share this property: They help you use a library that is NOT already available out of the box as part of java itself, and for all of them, lombok does not inherently include any of these dependencies.

Should be as simple as adding the following block to your pom.xml:


Leave a Comment