Repository navigation
Spring Boot 1.4.0 RC1 Release Notes
See instructions in the 1.4.0.M3 release notes for upgrading from v1.4.0.M2 and earlier.
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.
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.
|
Tip
|
Check the configuration changelog for a complete overview of the changes in configuration. |
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.
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.
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.
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.
If Spring Session is configured to use the JDBC store, the schema is now created automatically on startup.
Spring Boot now allows to connect against a secured Artemis/HornetQ broker.
-
The actuator exposes a new
headdumpendpoint that returns a GZip compressedhprofheap dump file -
Spring Mobile is now auto-configured for all supported template engines
-
The Spring Boot maven plugin allows to bundle
systemscoped artifacts using the newincludeSystemScopeattribute -
spring.mvc.log-resolved-exceptionenables warnings logs for exceptions that are resolved by anHandlerExceptionResolver -
spring.data.cassandra.schema-actionallows to customize the schema action to take on startup