Eclipse – How to know this class belongs to which JAR
By:Roy.LiuLast updated:2019-08-11
For example, I want to know this SpringBootApplication class belongs to which JAR or dependency :
import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class SpringBootWebApplication { public static void main(String[] args) throws Exception { SpringApplication.run(SpringBootWebApplication.class, args);
Solution
In Eclipse IDE, double clicks on the class name, press CTRL + SHIFT + T (win/*nix) or CMD + SHIFT + T (mac) to prompt out a small “Open Type” window about the class detail :

Note
This SpringBootApplication class belongs to spring-boot-autoconfigure-1.4.2.RELEASE.jar
This SpringBootApplication class belongs to spring-boot-autoconfigure-1.4.2.RELEASE.jar
References
From:一号门
COMMENTS