How to override Spring Boot dependencies default version?

前端 未结 2 999
春和景丽
春和景丽 2021-02-20 10:11

How to change Spring Boot dependencies default versions? For example Spring Boot 1.4 uses Thymeleaf 2.1 version but recent version of Thymeleaf is 3.0. So how to change version

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-20 10:57

    The answer provided by Andy only works when your POM inherits from spring-boot-dependencies. When spring-boot-dependencies is added through dependencyManagement, you have to redefine all the artifacts that you want to override. Bummer!

    This is also stated in the document referenced by Andy (it might have been added later).

提交回复
热议问题