lombok.extern.slf4j

代码:

 @Slf4j
 public class LogExample {
 }

产生以下代码:

 public class LogExample {
     private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LogExample.class);
 }

该注解对类和枚举有效。

相关文章: