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

后端 未结 5 896
轮回少年
轮回少年 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:44

    I got the same error even after Lombok was installed. For me the solution was to add another lombok annotation (i used @Data) to my class after which the eclipse errors went away. Perhaps this force refreshed some cache.

    Of course, I simply deleted the @Data annotation afterwards.

提交回复
热议问题