Notes @ Slf4j use

When we write the code necessary to add a log to print, every time you do not want to write private final Logger logger = LoggerFactory.getLogger (XXX.class); you can use an annotation @ Slf4j this comment

maven coordinates:

<dependency>
   <groupId>org.projectlombok</groupId>
   <artifactId>lombok</artifactId>
</dependency>

Guess you like

Origin www.cnblogs.com/chafe/p/11403488.html