lombok不兼容问题
lombok不支持高版本jdk,本人在应用商店下载eclipse安装的,默认用的jdk17,不兼容lombok插件,需要调整eclipse.ini配置文件,如下:
#/opt/apps/org.eclipse.java-ee/files/eclipse.ini
-javaagent:/opt/apps/org.eclipse.java-ee/files/lombok.jar
--add-exports=java.base/sun.nio.ch=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED
--add-opens=java.base/java.io=ALL-UNNAMED
--add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED
eclipse备忘录
eclipse相关配置:
#插件
Install New SoftwareName: tomcatLocation: https://sourceforge.net/projects/tomcatplugin/files/updatesite
Eclipse Marketplacesvn#Window->Preferences
Java->Installed JREsJRE home:/home/lichong/jdk1.8.0_281VM:-Dmaven.multiModuleProjectDirectory=$M2_HOME
Maven->Installationshome:/opt/软件/maven-3.3.9name:maven-3.3.9
Maven->User SettingsGlobal:/opt/软件/maven-3.3.9/conf/settings.xmlUser:/opt/软件/maven-3.3.9/conf/settings.xmlLocal:/opt/软件/Repositories/Maven
Tomcat->JVM SettingsJVM:-Xms256m -Xmx1024m -XX:MaxNewSize=512m -XX:MaxPermSize=512m