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

For example, if I am new to spring mvc framework, I follow the tutorial and should use DispatcherServlet. So I come to the maven repository , search for spring, returns a lot of dependency candidates:

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

How do I know which one contains the class that I wanted: DispatcherServlet, without a google search in the first place?

+4
source share
3 answers

Maven Central, groupId, artifactId, version, packaging classifier Classname.

enter image description here

+7

(, nexus, artefactory), .

https://mvnrepository.com

, , netbeans . (ctrl b , F3 eclipse, src jar)

+1

, IntelliJ IDEA, , IDE, " Maven" ( , ALT + Enter). IDE Maven pom.xml.

0
source

All Articles