Skip to main content

How To Add Dependency in Spring Boot Project | pom.xml file

Hello everyone, welcome back to techbrushup. In this tutorial, we will learn how to how to add dependency in Spring Boot Project. So guys, let's check out the prerequisite first.


Additional info: ( pom.xml) file is used to add dependencies in maven based Project.

prerequisite:

Should be Already created maven based project if not please follow Maven Based Project

Add Dependency

Step 1: Go to Maven Repository Official Mvn Repository Link

Step 2: search particular dependency 'spring web' and found result as below.

first spring boot application using the Eclipse

Step 3: Select dependency and click on it and select latest stable version .

first spring boot application using the Eclipse

Step 4: Select dependency and click on it and select latest stable version and copy it.

first spring boot application using the Eclipse

Step 5: Open pom.xml, go to section and add here.

 

first spring boot application using the Eclipse

Congrats !

Add new comment

Restricted HTML

  • You can use shortcode for block builder module. You can visit admin/structure/gavias_blockbuilder and get shortcode, sample [gbb name="page_home_1"].
  • You can use shortcode for block builder module. You can visit admin/structure/gavias_blockbuilder and get shortcode, sample [gbb name="page_home_1"].