环境:JDK 21
问题原因是Lombok ,与 JDK 21 兼容的最低 Lombok 版本是 1.18.30,最小的 Spring Boot 版本是 3.1.4。
解决:将lombook版本改为1.18.30
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.30</version>
<scope>compile</scope>
</dependency>
</dependencies>
标签:javac,sun,tree,tools,com,JCTree From: https://www.cnblogs.com/sherioc/p/18365776ref:https://blog.csdn.net/Lyon_yong/article/details/136975218