如果你的eclipse提示这样的错
Errors occurred during the build.
Errors running builder 'Java Builder' on project 'demo'.
Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @5a8dcfbb
恰巧你用安装了lombok.jar
你可以打开eclipse安装目录下的eclipse.ini
#添加下面两行
--illegal-access=warn
--add-opens java.base/java.lang=ALL-UNNAMED
完整的设置为:注意lombok.jar的路径
-startup
plugins/org.eclipse.equinox.launcher_1.6.300.v20210813-1054.jar
--launcher.library
plugins/org.eclipse