Spring Boot 运行工程 Lombok 报错

Spring Boot Lombok IDEA About 578 words

错误信息

IDEA构建项目时报符号找不到错误,且抛出以下错误:

java: Supported source version 'RELEASE_6' from annotation processor 'lombok.launch.AnnotationProcessorHider$ClaimingProcessor' less than -source '11'
java: You aren't using a compiler supported by lombok, so lombok will not work and has been disabled.
  Your processor is: com.sun.proxy.$Proxy19
  Lombok supports: OpenJDK javac, ECJ

错误原因

Lombok版本低于1.18.24

解决方法

方法一

升级Lombok版本至1.18.24及以上。

方法二

IDEA设置中添加配置

-Djps.track.ap.dependencies=false

配置路径:

Settings -> Build, Execution, Deployment -> Compiler -> Shared build process VM options

Views: 2,235 · Posted: 2023-01-31

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh