Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Spring Boot 2.0.0 M5 Release Notes
For changes in earlier milestones, please refer to:
Upgrading from Spring Boot 2.0.0 M4
See instructions in the 2.0.0.M4 release notes for upgrading from v2.0.0.M3 and earlier.
Custom include/exclude patterns have been aligned to latest Surefire’s defaults. If you were relying on ours, update your plugin configuration accordingly. They used to be as follows:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <includes> <include>**/*Tests.java</include> <include>**/*Test.java</include> </includes> <excludes> <exclude>**/Abstract*.java</exclude> </excludes> </configuration> </plugin>
If you are using JUnit 5, you should downograde Surefire to
Lettuce is now used instead of Jedis as the Redis driver when you use
spring-boot-starter-redis. If you are using higher level Spring Data constructs you should find that the change is transparent. We still support Jedis, and you are free to switch dependencies if you prefer by excluding
io.lettuce:lettuce-core and adding
OAuth 2.0 Support
If you depend on Spring Security OAuth features that have not yet been migrated you will need to add
org.springframework.security.oauth:spring-security-oauth2 and configure things manually. If you only need OAuth 2.0 client support you can use the auto-configuration provided by Spring Boot 2.0. We’re also continuing to support Spring Boot 1.5 so older applications can continue to use that until an upgrade path is provided.
Mockito 1.x is no longer supported for
@SpyBean. If you don’t use
spring-boot-starter-test to manage your dependencies you should upgrade to Mockito 2.x.
BootRun task now provides properties for configuring the application’s arguments (
args) and JVM arguments (
jvmArgs). More advanced configuration is available via
execSpec. See the Gradle plugin’s documentation for more details.
New and Noteworthy
|Check the configuration changelog for a complete overview of the changes in configuration.|
Updated project structure and CI
Java 9 support
Besides a handful identified cases, the
master build passes locally with Java 9. There is a dedicated page that provides more details if you want to run Spring Boot apps with Java 9.
Micrometer 1.0.0-rc.2 support
Spring Framework 5.0 GA
This milestone of Spring Boot is the first to include the GA release of Spring Framework 5.0. Core Spring Framework APIs should be stable from this point onward.
In addition to Jackson and Gson we now also support JSON-B for JSON binding. The JSON testing support has also been updated with a new
Spring Session users can now find and delete sessions via a
/application/sessions Actuator Endpoint.