Eclipse – How to know this class belongs to which JAR
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
This
SpringBootApplication
class belongs to spring-boot-autoconfigure-1.4.2.RELEASE.jar
Great !!