第二步:file-->setting-->build,excecution,deployment-->compiler-->annotation processors勾选上 enable annotation processing。即可生效。
第一步:file-->setting-->plugins,搜索lombok并安装插件,安装后,重启。
第二步:file-->setting-->build,excecution,deployment-->compiler-->annotation processors勾选上 enable annotation processing。即可生效。
原文:https://www.cnblogs.com/jjjmk/p/15161865.html