Skip to content

Spring Boot 1.1 Release Notes

Dave Syer edited this page May 27, 2014 · 32 revisions

Spring Boot 1.1 Release Notes

Upgrading from Spring Boot 1.0

Test dependences

The spring-boot-starter-test POM is no longer automatically included in the spring-boot-starter-parent. Adding default test dependencies to the parent POM seemed like a good idea, unfortunately they couldn’t easily be changed or removed.

When upgrading from 1.0 be sure to add a dependency to spring-boot-starter-test.

Redis Driver

Spring Boot 1.0 used the Lettuce Redis driver. Spring Boot 1.1 instead uses the Jedis driver. This change should be transparent for most users.

HealthIndicators

The HealthIndicator interface has changed to support a richer set of status codes, so it now always returns a Status. The default implementation also aggregates any other HealthIndicators it finds in the application context, and the HealthEndpoint returns an HttpStatus that matches the Status (e.g. 503 for unavailable). The SimpleHealthIndicator class has been renamed to SimpleDataSourceHealthIndicator.

JmsTemplate

The JmsTemplate class now defaults pubSubDomain to false rather than true.

ErrorController

The ErrorController interface and related classes have been moved from spring-boot-actuator to spring-boot-autoconfigure. This change should be transparent for most users, however, some package renames have occurred.

New and Noteworthy

Version Updates

Several third-party dependencies have been upgraded to align versions with those defined in the upcoming Spring IO Platform release. It is now also possible to use a custom version meta-data file with the Spring Boot Gradle plugin.

Additional Templating Support

There is now support for Freemarker, Groovy and Velocity templates alongside the existing Thymeleaf and JSP support.

Metrics and Health Endpoints

The /metrics actuator endpoint now include more information, including heap details, class load count, thread information and garbage collection statistics.

The HealthIndicator interface has been improved so that you can register multiple beans. We’ve also added out of the box support for Redis, Mongo and RabbitMQ indicators (alongside the existing JDBC indicator).

Maven Plugin

The Spring Boot Maven plugin now supports excludes which can be used to filter the libraries that bundled as part of your ``fat'' jar. Plugin documentation is now also published as a maven site.

Custom Banner

You can now add a custom banner by adding a banner.txt file to your classpath or by setting a banner.location property.

Flyway database migrations

Auto-configuration is now provided for Flyway database migrations.

Liquibase database migrations

Auto-configuration is now provided for Liquibase database migrations.

Mongo

Mongo auto-configuration has been improved so that you can now inject Mongo, MongoDbFactory or MongoTemplate beans. GridFS support has also been added via an auto-configured GridFsTemplate bean.

GemFire

Auto-configuration support is now available for GemFire, along with a new spring-boot-starter-data-gemfire starter POM.

Web Improvements

Auto-configuration classes for Spring HATEOAS'' and Spring Data Rest MVC'' have now been added to Spring Boot. Multi-part file upload support has been changed to be enabled by default.

HikariDataSource

Support has been added for the Hikari Connection Pool library. Simply ensure that the HikariCP library is on your classpath and that the Tomcat DBCP is not.

ConditionalOnProperty Annotation

A new @ConditionalOnProperty annotation has been added to support conditionally enabling beans based on the presence of an Environment property.

Clone this wiki locally