This Week in Spring - April 15, 2014

Engineering | Josh Long | April 15, 2014 | ...

Welcome to another installment of This Week in Spring! This week, I'm in Paris, France talking to developers about Spring Framework 4.0, Spring Boot, and more at Devoxx FR. Next week it's off to Bangalore, India for the Great Indian Developer Summit. As always, ping me online if you're around either location and want to talk Spring.

  1. Tuesday April 30th Webinar - don't miss Ashley Puls (New Relic) and myself as they track and trace through modern web apps: Web Application Diagnostics with Java and Javascript
  2. Tuesday April 22nd Webinar - see what stole the EclipseCon 2014 keynote: Martin Lippert and Mike Milinkovich demoing alpha versions of Project Flux: Connecting Eclipse to the Cloud-Based Era of Developer Tooling. Register today!
  3. Thomas Risberg and Janne Valkealahti show how they can use a single programming model / configuration model for Java MapReduce, Streaming, Hive, Pig, Cascading, or HBase in this SpringOne2GX 2013 Replay: Getting started with Spring Data and Apache Hadoop
  4. 90 minutes with Jags Ramnarayan and Anthony Baker at SpringOne2GX 2013: In-memory data and compute on top of Hadoop
  5. Check out Kevin Nilson (Google) and myself co-presenting at SpringOne2GX 2013 on Spring Profiles, and how it is an amazing tool for managing code through the normal dev/stage/production lifecycle: Multi Environment Spring Applications.
  6. I'm back with Roy Clarkson at SpringOne2GX 2013 talking about Spring Mobile/Android, REST/OAUTH and more in: Building Smart Clients with Spring
  7. Erdem Günay has put together a very nice post on how he used the Spring Expression Language (SpEL) and Spring Boot to dynamically send remote installation instructions to a wide array of Android clients, dynamically.
  8. Our pal Sam Brannen is going to be speaking at the Atlanta Spring User Group! One of the smart
  9. Moritz Schulze put together a very, very detailed post on how his company developed a time tracking, vacation-time managing application called Trackr with Java 8 and Spring Boot
  10. Mario Arias has put together a version of the Spring relational data Getting Started Guide using the Kotlin language. Kotlin is JetBrains' statically typed programming language to JVM byte codes and JavaScript. Very cool! I have never seen the kotlinprimavera module(s) before, but I dig it!
  11. Patrick Chanezon, director of enterprise evangelism at Microsoft, sat in on the vJUG meetup talk I gave on Spring Boot recently and set about hacking! The result is some guidance on how to deploy a Spring Boot application to Microsoft's Azure PaaS. Nice! Merci, Patrick!
  12. Hai Nguyen has put together a very nice post on how to configure / consume an embedded Jetty's JNDI-bound DataSource
  13. Did you miss Spring framework lead Juergen Hoeller's epic talk about Spring 4 and Java 8 from GOTO Amsterdam? Have no fear, you can watch it online!
  14. This is a particularly PaaSy This Week in Spring! Kim Saabye Pedersen has written a nice post on using Spring Boot on RedHat's OpenShift PaaS
  15. Our friend Petri Kainulainen is back, this time with a very nice post on using JOOQ with Spring. Petri's an amazing person to have in the community. I hope you don't need me to tell you that. Bookmark his site. It's almost always worth it.
  16. Our pal at Netflix, Tomás Lin, is back! This time he's got a post on bundling web content with Spring Boot and Gradle
  17. Michael Simons posted a very detailed post on how he's developing a Boot web application. Thanks for the detailed writeup, Michael. Very valuable feedback.

Spring MVC Test with Geb

Engineering | Rob Winch | April 15, 2014 | ...

In my third post I discussed how to use WebDriver to make designing our tests easier with the Page Object Pattern. In this post, I'm going to discuss how to use Geb to make our testing with MockMvc more Groovy.

Why Geb and MockMvc

Geb is backed by WebDriver, so it offers many of the same benefits we got from WebDriver. However, Geb makes things even easier by taking care of some of the boiler plate code for us. Of course we want to use MockMvc so that we do no need to deploy our code to a server. The easiest way to understand the benefits of using Geb is to jump into an example.


NOTE: Another great feature of Geb is its exceptional documentation

Cache Abstraction: JCache (JSR-107) Annotations Support

Engineering | Stéphane Nicoll | April 14, 2014 | ...

Spring's caching abstraction is available as from Spring 3.1 and it was about time to show it some more love. In this post, I want to walk you through the major improvement in that area which is the JCache (JSR-107) annotations support.

As you may have heard, JSR-107 went final after all, 13 years after the initial proposal. For those who are familiar with Spring’s caching annotations, the following table describes the mapping between the Spring annotations and the JSR-107 counterpart:

Spring JSR-107
@Cacheable @CacheResult
@CachePut @CachePut
@CacheEvict @CacheRemove
@CacheEvict(allEntries=true) @CacheRemoveAll

JavaScript modularity (without the buzzwords)

Engineering | Brian Clozel | April 11, 2014 | ...

Almost ten years ago Adrian Colyer wrote a memorable blog post, giving the best explanation on aspect oriented programming (AOP) out there: clear and simple style, accurate content, no buzzwords. If you've taken a look at the the earlier two posts in this series, you may have noticed some of our architecture choices in the client module of the Sagan application, including the use of JavaScript modules.

In this post, I want to walk you through the basics of JavaScript modules in the style of Adrian's post: clear, simple, accurate, no buzzwords!

Why JavaScript needs modularity too

If, like me…

Spring Batch 2.2.6.RELEASE is now available

Releases | Michael Minella | April 11, 2014 | ...

We are pleased to announce that Spring Batch 2.2.6.RELEASE is now available via Maven Central, Github and the SpringSource download repository. This is the 6th maintenance release for the 2.2.x branch of Spring Batch and addresses a number of bugs, a few minor enhancements, and documentation updates. Many thanks to all of those who submitted the many pull requests that went into this release.

Spring Batch Home | Source on GitHub | Reference Documentation

We look forward to your feedback.

Webinar: Building 'Bootiful'­ Applications with Spring Boot

News | Pieter Humphrey | April 08, 2014 | ...

Speaker: Josh Long

Alright, so maybe "bootiful" won't ever work, but I tried, and it was worth it too because you're reading this. Spring Boot, the new convention-over-configuration centric framework from the Spring team at Pivotal, marries Spring's flexibility with conventional, common sense defaults to make application development not just fly, but pleasant! Join Spring developer advocate Josh Long for a look at what Spring Boot is, why it's turning heads, why you should consider it for your next application (REST, web, batch, big-data, integration, whatever!) and how to get started.

Tuesday, April 15, 2014 3:00 pm (London, UTC+01:00) Register

Tuesday, April 15, 2014 10:00 am Pacific Daylight Time (San Francisco, UTC-07:00) Register

Webinar: Connecting Eclipse to the Cloud-Based Era of Developer Tooling with Project Flux

News | Pieter Humphrey | April 08, 2014 | ...

Speakers: Martin Lippert (Pivotal), Mike Milinkovich (Eclipse Foundation)

The Eclipse IDE (as one example) is great, but increasingly we are seeing new projects and companies working in the cloud-based developer tooling space, using a front-end that runs purely in the browser. The Eclipse Orion project is one example of this. While the new approaches look promising, they are usually completely disconnected from the existing desktop-class IDEs and are still lightyears away from working well for Java developers. In this webinar Martin Lippert will provide a sneak peek into Project Flux, a new project that is hosted at Eclipse and that we've been working on that aims at bridging this gap between existing desktop-class IDEs and future cloud-based developer tooling. While this project is still far away from shipping a ready-to-use release, the webinar provides an insight into the prototype and what is coming in the future. Special guest introduction from Mike Milinkovich, exec director of the eclipse foundation.

Tuesday, April 22, 2014 3:00 pm (London, UTC+01:00) Register

Tuesday, April 22, 2014 10:00 am Pacific Daylight Time (San Francisco, UTC-07:00) Register

Webinar: Web Application Diagnostics with Java and Javascript

News | Pieter Humphrey | April 08, 2014 | ...

Speakers: Josh Long (Pivotal) and Ashley Puls (New Relic)

There is more and more usage of Javascript on the client side today. Many are starting down the difficult path of full blown application development in JS on the client side, going beyond having a simple rollover menu logic or presentation component. But tracking and tracing effectively means looking at the whole application, not just the front end. New Relic can be used either in development or production to diagnose hybrid Javascript/Java applications. In this session, Josh Long (Pivotal) and Ashley Puls (New Relic) will show how you can track and trace your way through today's hybrid Java web apps - resolving slow page loads, blocked threads, slow queries, etc.

Tuesday, April 30, 2014 3:00 pm (London, UTC+01:00) Register

Tuesday, April 30, 2014 10:00 am Pacific Daylight Time (San Francisco, UTC-07:00) Register

This Week in Spring - April 8th, 2014

Engineering | Josh Long | April 08, 2014 | ...

Welcome to another installment of This Week in Spring!

Tomorrow, I'll be presenting on the vJUG, a virtual JUG, about Spring Boot. Don't tell anyone, but the presentation itself is going to be based on a talk that Spring Boot co-founder Phil Webb and I have been planning. The code is already online, so check it out and I look forward to seeing you tomorrow! If you miss the talk, and you happen to be in the bay area, then join us on Thursday evening at the Pivotal offices here in San Francisco for a more caffeinated version of the same talk with both Phil and myself!

Then, this Sunday, I'm off to spread the Spring love! I'll touchdown first in Paris for Devoxx FR. From there, it's off to Bangalore, India, for the Great Indian Developer Summit. I haven't been there since 2012 and am very much looking forward to it and to seeing the amazing Spring community there. Then, on my way home I'll pop in to Belgium for a talk at the Belgium JUG

Spring Boot 1.0.1.RELEASE Available Now

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

Spring Boot 1.0.1.RELEASE is available in Maven Central and the repo.spring.io repository. This is a bug fix release, although a couple of new features have been added:

  • MessageSource caching can be specified in application.properties
  • ActiveMQ connection credentials can be externalized to application.properties
  • There is a new section on Security auto configuration in the reference guide

There was a security bug-fix for the Actuator, so anyone using Spring Security and the Actuator endpoints should upgrade. No backwards compatibility problems or changes to existing functionality are…

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