Skip to content

Spring Boot 1.4.0 RC1 Release Notes

Stéphane Nicoll edited this page Jul 5, 2016 · 19 revisions

Spring Boot 1.4.0 RC1 Release Notes

For changes in earlier milestones, please refer to:

Upgrading from Spring Boot 1.4.0 M3

See instructions in the 1.4.0.M3 release notes for upgrading from v1.4.0.M2 and earlier.

MongoDB 3

The default version of Mongo’s Java Driver is now 3.2.2 (from 2.14.2) and spring-boot-starter-data-mongodb has been updated to use the new, preferred mongodb-driver artifact.

The auto-configuration for Embedded MongoDB has also been updated to use 3.2.2 as its default version.

Spring Batch Starter

The spring-boot-starter-batch starter does not bring a default database anymore. If you were relying on this arrangement, please add a database (driver) of your choice, e.g.

<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-batch</artifactId>
</dependency>
<dependency>
	<groupId>org.hsqldb</groupId>
	<artifactId>hsqldb</artifactId>
	<scope>runtime</scope>
</dependency>

If you had an exclusion on hsqldb to bring your own, you can now remove the exclusion.

Server header

The Server HTTP response header is no longer set unless the server.server-header property is set.

New and Noteworthy

Tip
Check the configuration changelog for a complete overview of the changes in configuration.

Third-party library upgrades

A number of third party libraries have been upgraded to their latest version. Updates include Jetty 9.3, Tomcat 8.5, Jersey 2.23, Artemis 1.3, Ehcache 3.1, Elasticsearch 2.3, Spring REST Docs 1.1, Spring AMQP 1.6 & Spring Integration 4.3.

A bunch of maven plugins were also upgraded.

RestTemplate builder

A new RestTemplateBuilder can be used to easily create a RestTemplate with sensible defaults. By default, the built RestTemplate`will attempt to use the most suitable `ClientHttpRequestFactory and will be aware of the MessageConverter instances to use (including Jackson). The builder includes a number of useful methods that can be used to quickly configure a RestTemplate. For example, to add BASIC auth support you can use

@Bean
public RestTemplate restTemplate(RestTemplateBuilder builder) {
    return builder.basicAuthorization("user", "secret").build();
}

The auto-configured TestRestTemplate now uses the RestTemplateBuilder as well.

@RestClientTest

The @RestClientTest annotation can be used if you want to test REST clients. By default it will auto configure Jackson and GSON support, configure a RestTemplateBuilder and add support for MockRestServiceServer.

Jest support

Spring Boot auto-configures a JestClient and a dedicated HealthIndicator if jest is on the classpath. This allows you to use Elasticsearch even when spring-data-elasticsearch isn’t on the classpath.

Spring Session JDBC Initializer

If Spring Session is configured to use the JDBC store, the schema is now created automatically on startup.

Secured connection for Artemis/HornetQ

Spring Boot now allows to connect against a secured Artemis/HornetQ broker.

Miscellaneous

  • The actuator exposes a new headdump endpoint that returns a GZip compressed hprof heap dump file

  • Spring Mobile is now auto-configured for all supported template engines

  • The Spring Boot maven plugin allows to bundle system scoped artifacts using the new includeSystemScope attribute

  • spring.mvc.log-resolved-exception enables warnings logs for exceptions that are resolved by an HandlerExceptionResolver

  • spring.data.cassandra.schema-action allows to customize the schema action to take on startup

Deprecations in Spring Boot 1.4.0.RC1

  • The spring-boot-starter-hornetq starter has been deprecated in favor of using spring-boot-starter-artemis

  • management.security.role has been deprecated in favour of management.security.roles

Clone this wiki locally