1.maven finds dependencies
- Click to enter the website and search for the required dependency package name
- Choose an appropriate dependency
- Choose the version according to your needs
- Select maven, copy the code and paste it into pom.xml
2. Add new dependencies
In the pom.xml file, after adding the dependencies, open the vscode terminal, enter the following command and click Enter, the dependencies will be automatically downloaded to the local
mvn dependency:resolve