前言 文章:https://blog.csdn.net/shangrila_kun/article/details/89357680 代码 引入lombok类上面添加@Slf4j,然后在代码写入一下内容即可 log.info(123)