Location>code7788 >text

How to check if a maven dependency exists and the dependency links in SpringBoot projects

Popularity:169 ℃/2024-07-26 17:29:29

When I want to add a dependency in my SpringBoot project, but I'm not sure if the dependency of an existing dependency ..... What should I do if I have added this dependency? If I have added a dependency but I am not sure which dependency I need, how can I find out?
IDEA provides convenient views for our needs.

  1. The first step is to click on maven on the right side of the project
  2. Step 2 Check the Dependencies
  3. Step 3 Click on this button

The dependency graph that opens is as follows

Press Ctrl+F to search for the dependency we want to check, for example, I want to check the spring-boot-start-data-redis dependency

This shows that the spring-boot-start-data-redis dependency has been added to the project.

You can also choose the style of the dependency tree, personally I find the default the most convenient and intuitive


If you find this post helpful please also give me a like before you go, I appreciate it! (づ. づ.) づ