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 Software
Name: tomcat
Location: https://sourceforge.net/projects/tomcatplugin/files/updatesite
Eclipse Marketplace
svn
#Window->Preferences
Java->Installed JREs
JRE home:/home/lichong/jdk1.8.0_281
VM:-Dmaven.multiModuleProjectDirectory=$M2_HOME
Maven->Installations
home:/opt/软件/maven-3.3.9
name:maven-3.3.9
Maven->User Settings
Global:/opt/软件/maven-3.3.9/conf/settings.xml
User:/opt/软件/maven-3.3.9/conf/settings.xml
Local:/opt/软件/Repositories/Maven
Tomcat->JVM Settings
JVM:-Xms256m -Xmx1024m -XX:MaxNewSize=512m -XX:MaxPermSize=512m