java: You aren’t using a compiler supported by lombok, so lombok will not work and has been disabled.
启动时报错
需要在pom文件添加这个
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.24</version> <!-- Update to the latest version -->
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>
然后reload项目