file-->setting-->plugins点击下方的 browse repositories。 搜索lombok plugin。 安装后,重启。 file-->setting-->build,excecution,deployment-->compiler-->annotation processors勾选上 enable annotation processing。即可生效。