出现:java: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x3278991b) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module @0x3278991b
网上说是lombok下载的版本过低
在pom.xml文件里面更新更高版本的就可以了
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.20</version>
</dependency>
标签:java,javac,module,apt,lombok,class
From: https://www.cnblogs.com/yzx-sir/p/17357570.html