Engineering
Releases
News and Events

Spring Boot 1.0.2.RELEASE Available Now

Spring Boot 1.0.2.RELEASE is available now in the Spring and Maven Central repositories. This is mostly a bug-fix release (nothing major, but please upgrade if you are using an older version). There are also a couple of nice new features.

My favourite additions are the new @IntegrationTest features. Here's an example:

@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = SampleActuatorApplication.class)
@WebAppConfiguration
@IntegrationTest("server.port=0")
public class SampleActuatorApplicationTests {

    @Value("${local.server.port}")
    private int port;

        ...

}

Here we have set the default value of "server.port" to 0 (which means "choose a random port") and then we have bound it to a field in the test so we can use it to interact with the running server. Neat, eh? You can bind other key-value pairs by adding more Strings to the @IntegrationTest value attribute.

We also added the following:

  • Websocket support to the Groovy CLI
  • Support for "yaml" file extensions in external configuration
  • A webapp will have a LocaleResolver if spring.mvc.locale is set
  • The script separator for SQL initialization has been externalized
  • Filter and Servlet beans can be disabled by wrapping them in a registration bean with enabled=false

... plus a ton of documentation improvements. See GitHub for the complete list of changes.

Thanks again to all the community contributors who helped with this release. Take it for a ride, today!

Project Page | GitHub | Issues | Documentation

comments powered by Disqus