请按照以下步骤进行操作:
1. 按照以下步骤构建Spring应用程序:https : //spring.io/guides/gs/spring-boot/
- 在IntelliJ中安装Lombok (check compatibility with your version of IntelliJ idea)
- 在(pom.xml / build.gradle /其他构建文件)中添加为依赖项
<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <scope>provided</scope></dependency>
建立项目
在IntelliJ中启用注释处理(每次导入新项目时都必须执行此操作,如果要默认启用它,请按照此 SO OP中提到的步骤进行操作。
File| Other Settings| Default Settings,导航到编译器设置,注释处理并启用此功能。选项,然后再导入项目。
如果仍然遇到问题,请一次File/ Invalidate caches/Invalidate and restart
That’s it.



