Building with Lombok's @Slf4j and Eclipse: Cannot find symbol log

后端 未结 5 893
轮回少年
轮回少年 2020-12-18 18:22

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 @Slf4

5条回答
  •  佛祖请我去吃肉
    2020-12-18 18:56

    So like others, i also faced this issue. Below is what I did.

    1. Installed lombok.jar like explained here.
    2. Tried restarting eclipse. (Did not work)
    3. Tried refreshing gradle project. (Did not work)
    4. tried what Hervian suggested in his answer here. (Did not work)
    5. Closed the projects, deleted from workspace and then re-imported. Bam!! Worked.

提交回复
热议问题