pom.xml中加一个版本就对了
<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.16.16</version> <optional>true</optional> </dependency>