springboot中使用注解@Slf4j时,log无效

在springboot项目中,使用注解@Slf4j时,log变量不能用。
解决方法:(使用idea工具的图解)下载安装lombox插件。
1、File → settings → Plugins, 然后点击“Browse repositories”
这里写图片描述
2、输入 lombok 搜索插件, 点install安装,安装完重启idea
这里写图片描述
原文:https://blog.csdn.net/qq_26346457/article/details/78736373

猜你喜欢

转载自blog.csdn.net/qq_29340989/article/details/80903714