4. Upgrade
-
Window ☞ Preference ☞ Install/Update ☞ Available Software Site
-
Add ☞ Eclipse2406:https://download.eclipse.org/releases/2024-06/
-
Ok ☞ Help ☞ Check for Update ☞ Restart Eclipse
5. Main
${:import(
java.lang.invoke.MethodHandles,
org.springframework.boot.SpringApplication
)}
public static void main(String[] sa) {
Class<?> cls = MethodHandles.lookup().lookupClass();
SpringApplication.run(cls, sa);
}
6. Logger
${:import(
org.slf4j.Logger, org.slf4j.LoggerFactory,
java.lang.invoke.MethodHandles
)}
private static final Logger logger = LoggerFactory
.getLogger(MethodHandles.lookup().lookupClass());
${cursor}
12. Type
/**
* Copyright 2022 - ? Elf All Rights Reserved
* @description
* @create ${d:date('yyyy-MM-dd HH:mm:ss')}
* @author elf
* @version 1.0.0
*/
13. Method
/**
* @title ${enclosing_method}
* ${tags}
* @return ${return_type}
* @create ${d:date('yyyy-MM-dd HH:mm:ss')}
* @author elf
* @since 1.0.0
*/
14. Gradle
-
Local Location:D:\Install\Dev\Gradle
-
User Home:D:\Install\Space\Gradle
-
Java Home:D:\Install\Dev\Java\Graal21
15. SilentExitException
-
Window ⇒ Preferences ⇒ Java ⇒ Debug
-
取消suspend execution on uncaught exceptions
17. 插件
17.1. 卸载插件
-
TM Terminal
-
Mylyn WikiText Editor
-
Tip of the Day UI Feature
-
Wild Web Developer XML Tool
-
POM Editor using LemMinX language server
-
m2e - slf4j over logback logging (Optional)
17.2. 重要插件
-
SQL Editor
-
Bash Editor
-
Batch Editor
-
HiJSON Editor
-
Spring Tools 4
-
Jenkins Editor
-
Asciidoctor Editor
-
Eclipse Docker Tooling
-
Kubernetes Manifest Editor
-
JustJ OpenJDK Hotspot JRE Complete
17.3. 可选插件
-
efxclipse
-
MyBatipse
-
JBoss Tools
-
Yaml Editor
-
Eclipse PDE
-
CMake Editor
-
cmake4eclipse
-
EGradle Editor
-
GoClipse
-
Eclipse Golang Development Tooling
-
Autodetect Encoding
-
ResourceBundle Editor
-
Cucumber Eclipse Plugin
-
Eclipse Web Developer Tools
-
Lombok:-javaagent:lombok.jar
-
Eclipse Enterprise Java and Web Developer Tools
-
ANSI Console:
spring.output.ansi.enabled: always
18. 常用设置
-
Window → Preferences →
18.2. Asciidoctor Editor
-
Use Installed asciidoctor instead ASP
-
Path to Asciidoctor
E:\Install\Dev\Ruby27X64\bin
-
Path to Java binary,用于plantuml
E:\Install\Dev\Java\Jdk\bin\java.exe
18.3. Gradle
-
Local Installation Directory
-
E:\Install\Dev\Gradle
-
-
Gradle User Home
-
E:\Install\Dev\Repo\GradleUserHome
-
-
Java Home
-
E:\Install\Dev\Java\Jdk1501
-
19. Speed Up Eclipse
http://www.nicolasbize.com/blog/7-tips-to-speed-up-eclipse
https://zeroturnaround.com/rebellabs/eclipse-having-a-slow-day-speed-it-up-in-a-few-clicks
19.1. Excessive Index and History
WORKSPACE_PATH/.metadata/.plugins/org.eclipse.jdt.core
WORKSPACE_PATH/.metadata/.plugins/org.eclipse.core.resources/.history
D:\Dev\workspace\.metadata\.plugins\org.eclipse.jdt.core
D:\Dev\workspace\.metadata\.plugins\org.eclipse.core.resources\.history
20. Plugin Directory
-
E:\Install\Dev\workspace\.metadata\.plugins
-
org.eclipse.jdt.core
-
org.eclipse.core.resources\.history
-
org.eclipse.ltk.core.refactoring\.refactorings
-
org.eclipse.debug.core\.launches
-
org.eclipse.m2e.core
-
org.eclipse.m2e.jdt
-
21. Classpath For src/test
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>