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

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

    this got the fix to me by adding the slf4j dependency, Lombok can identify the slf4j but does not get the download, this is true for java project if you are using spring boot then slf4j comes by default.

    here are my dependencies

        
        
            org.slf4j
            slf4j-api
            1.7.25
        
    
    
    
    
        
            org.projectlombok
            lombok
            1.18.6
            provided
        
    

提交回复
热议问题