使用JDK21报错NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member fie

报错信息

使用JDK21报错NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member fie_第1张图片

原因:lombok版本不兼容问题可能是版本过低:更新lombok即可


    org.projectlombok
    lombok
    1.18.30

 再次启动项目就可以正常运行了

使用JDK21报错NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member fie_第2张图片

完美解决 

你可能感兴趣的:(开发中的错误解决,java,服务器,前端)