How to override Spring Boot dependencies default version?

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.1 to 3.0?

Answers


The documentation describes how to do this.

Judging by the tags on the question, you're using Maven. You should add a property to your application's pom.xml to set the Thymeleaf version:

<properties>
    <thymeleaf.version>3.0.1.RELEASE</thymeleaf.version>
</properties>

There's also a sample application that shows how to use Thymeleaf 3.0 with Spring Boot 1.4 that may be of interest.


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).


Need Your Help

Proper AutoresizingMask

ios uiview uiinterfaceorientation autoresizingmask

I have a view that appears at the center of its parent view portrait mode, what autoresizemask should I use so that it appears in the center in landscape mode too. It's size should remain same.I just

Ajax+XMPP or simple JSON file+ajax

php jquery ajax json chat

I wrote a very simple AJAX chat app with jQuery. It simply sends your message to a PHP file via AJAX, then writes that message JSON-encoded into a text file for the receiver to pick up. The JSON fi...