Skip to content

Spring Boot 1.4.0 M1 Release Notes

Stéphane Nicoll edited this page Feb 3, 2016 · 15 revisions

Spring Boot 1.4.0 M1 Release Notes

Upgrading from Spring Boot 1.3

Deprecations from Spring Boot 1.3

Classes, methods and properties that were deprecated in Spring Boot 1.3 have been removed in this release. Please ensure that you aren’t calling deprecated methods before upgrading.

In particular, log4j 1 support has been removed following Apache EOL announcement

DataSource biding

Prior to Spring Boot 1.4, auto-configured datasources were bound to the spring.datasource namespace. In 1.4, we only bind the common settings to spring.datasource (see DataSourceProperties) and we have defined new specific namespaces for the four connections pools we support (in that order):

  • spring.datasource.tomcat for org.apache.tomcat.jdbc.pool.DataSource

  • spring.datasource.hikari for com.zaxxer.hikari.HikariDataSource

  • spring.datasource.dbcp for org.apache.commons.dbcp.BasicDataSource

  • spring.datasource.dbcp2 for org.apache.commons.dbcp2.BasicDataSource

If you were using specific settings of the connection pool implementation, you will have to move that configuration to the specific namespace. For instance, if you were using Tomcat’s testOnBorrow flag, you’ll have to move it from spring.datasource.test-on-borrow to spring.datasource.tomcat.test-on-borrow.

If you are using configuration assistance in your IDE, you can see which settings are available per connection pools rather than having all of them mixed in the spring.datasource namespace.

Jetty JNDI support

The spring-boot-starter-jetty "Starter POM" no longer includes org.eclipse.jetty:jetty-jndi. If you are using Jetty with JNDI you will now need to directly add this dependency yourself.

New and Noteworthy

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

Clone this wiki locally