问题:

在pom.xml中加入引入了lombok的依赖,可以引用@Slf4j注解不能识别log

注:上面一篇博客,已经说明lombok的安装了,但是用的时候还有点问题。

1)、把lombok.jar移动到eclipse安装的路径下,重新install一次

2)、重启eclipse

3)、clean一下项目,可能有缓存。

三步都做一下,就能解决问题。

 

相关文章:

  • 2021-12-04
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2021-08-16
  • 2021-06-14
  • 2021-12-28
猜你喜欢
  • 2021-07-21
  • 2021-03-31
  • 2021-05-27
  • 2021-12-12
  • 2021-05-23
  • 2021-09-21
  • 2022-01-23
相关资源
相似解决方案