使用Lombok的@ Slf4j和Eclipse构建:找不到符号日志 [英] Building with Lombok's @Slf4j and Eclipse: Cannot find symbol log

查看:569
本文介绍了使用Lombok的@ Slf4j和Eclipse构建:找不到符号日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse中有lombok插件,并在java编译器下的Eclipse中启用了注释处理,但是当我使用@ Slf4j注释时,它仍然无法识别日志语句.

I have the lombok plugin in Eclipse and enabled annotation processing in Eclipse under java compiler, but still it is unable to recognize the log statements when I use @Slf4j annotation.

我们还需要进行其他设置吗?

Do we have to make any other settings?

推荐答案

您还必须将Lombok安装到Eclipse中.

You also have to install Lombok into Eclipse.

另请参见此答案该怎么做或检查Lombok是否正确安装.

See also this answer on how to do that or check if Lombok is installed correctly.

完全公开:我是 Project龙目岛开发人员之一.

Full Disclosure: I am one of the Project Lombok developers.

这篇关于使用Lombok的@ Slf4j和Eclipse构建:找不到符号日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆