Spring Boot 1.0.2.RELEASE Available Now

Releases | Dave Syer | April 24, 2014 | ...

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

Get the Spring newsletter

Stay connected with the Spring newsletter

Subscribe

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all