Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I know which maven package contains the class I am going to use?

For example, if I am new to spring mvc framework, I follow a tutorial and need to use DispatcherServlet. So I come to maven repository, search for spring, comes out many dependency candidate:

spring-context, spring-web, spring-core, ....

How do I know which of them contains the class I wanted: DispatcherServlet, without searching on Google first?

like image 528
modeller Avatar asked Jul 09 '16 17:07

modeller


1 Answers

You can go to the Advanced search page of Maven Central which gives you the choice to search groupId, artifactId, version, packaging and classifier or for a Classname.

enter image description here

like image 145
khmarbaise Avatar answered Oct 20 '22 15:10

khmarbaise