90.2k views
2 votes
How to update spring boot version maven

User Parn
by
7.4k points

1 Answer

5 votes

Final answer:

To update the Spring Boot version in Maven, modify the version number in the project's pom.xml file.

Step-by-step explanation:

To update the Spring Boot version in Maven, you need to modify the version number in your project's pom.xml file. Here are the steps:

  1. Open the pom.xml file in your project.
  2. Locate the <parent> element and change the <version> value to the desired Spring Boot version.
  3. Save the pom.xml file.

For example, if you want to update to version 2.5.4, the modified <parent> element should look like this:

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.4</version>
<relativePath>../spring-boot-starter-parent</relativePath>
</parent>

User Unleashed
by
6.9k points