idea报错: 程序包lombok.extern.slf4j不存在

问题

gradle项目: ,junit运行报错
在这里插入图片描述

解决办法:

在这里插入图片描述改成如下:

在这里插入图片描述

原因

在这里插入图片描述
参考:
in a pure java/kotlin project , building and running by means of the IDE might be faster,thanks to optimizations . Note , that the IDE doesnt support all Gradle plugins and the project might not be built correctly with some of them.

在纯java/kotlin项目中,通过IDE构建和运行可能更快,这得益于优化。注意,IDE不支持所有的Gradle插件,并且项目可能不能正确地使用其中的一些插件来构建

Logo

一站式 AI 云服务平台

更多推荐