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:
- Open the pom.xml file in your project.
- Locate the <parent> element and change the <version> value to the desired Spring Boot version.
- 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>