lombok.extern.slf4j
代码:
@Slf4j public class LogExample { }
产生以下代码:
public class LogExample { private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LogExample.class); }
该注解对类和枚举有效。
代码:
@Slf4j public class LogExample { }
产生以下代码:
public class LogExample { private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LogExample.class); }
该注解对类和枚举有效。
转载于:https://www.cnblogs.com/jugglee/p/9050164.html