How do I upgrade the Spring version in Spring Boot

后端 未结 2 1521
日久生厌
日久生厌 2021-02-08 02:38

Is there a tutorial on how to upgrade the Spring version to Spring 5.0? I can\'t find the Spring version in my pom.xml.

I found this: https://github.com/spring-projects/

2条回答
  •  悲哀的现实
    2021-02-08 03:19

    You can find the Spring Framwork version of spring-boot-starter-X by checking its pom.xml. Navigate to its parent pom until you get to spring-boot-dependencies-VERSION.pom. With InteliiJ, in the pom file, I can easily navigate to the parent pom by clicking on the reference in the file. I guess (or hope) you can do the same in other IDEs. Look for the property , that's is the Spring Framwork version.

    For example, I am using spring-boot-starter-web-1.3.8.RELEASE.jar. Its parent pom is spring-boot-dependencies-1.3.8.RELEASE which includes the property with the value 4.2.8.RELEASE.

    You can change the Spring Framwork version by overriding this property in your pom that includes spring-boot-starter-X dependency, but it is not recommended . Also note that the property name was changed to spring-framework.version on later versions.

提交回复
热议问题