Spring Team
Greg Turnquist

Greg Turnquist

Test-bitten script junky

Clarksville, TN USA

Greg is a test-bitten script junky. He is a member of the Spring team at Pivotal. He works on Spring Data REST, Spring Boot and other Spring projects, while also working as an editor-at-large of Spring's Getting Started guides. He launched the Nashville JUG in 2010. He created Spring Python and wrote "Spring Python 1.1" and "Python Testing Cookbook". He is currently writing "Learning Spring Boot". He has been a Spring fan for years.
Blog Posts by Greg Turnquist

Screencast: How to create a RESTful app in five minutes or less

Recently, a friend of mine tweeted out a challenge:

"Name a framework in which you can create a new app expose a REST service with a database and deploy it to the cloud in five minutes. #grails"

The moment I spotted that tweet, I responded, "Spring Boot + Spring Data REST"! I realized he was kindly pointing out how easy it is to build RESTful services with Grails (a great framework). But I couldn't resist showing the ease and power of Spring Data REST.

To prove my point, I couldn't resisting crafting a screencast. In the linked screencast, I show how ├╝ber easy Spring has made it to pick the parts for your app from http://start.spring.io, define your domain, and then export them as a hypermedia-driven RESTful service.

Read more...

See how to build, test, secure, and add hypermedia with this new tutorial, "Building REST Services with Spring"

Greetings Spring Community!

Today we have released a new tutorial written by Spring geek Josh Long, the man who travels the globe talking about Spring: Building REST Services with Spring

In this sleek tutorial, you can read about the simplicity and power of building RESTful web services using Spring. You'll also see how to:

It's a really good read with LOTS of code (you know, the important stuff). What about the existing REST tutorial? It was a bit dated on concepts we wanted to cover and state-of-the-art, so it has been retired in favor of this one.

Read more...

Join us at the Spring Data birds-of-a-feather session @springone2gx #s2gx

Are you ready for SpringOne? It's almost here!

A popular part of SpringOne are the birds-of-a-feather sessions. Different groups get together to talk about different aspects of Spring, Groovy, and Grails. This year, they are scheduled for Tuesday night, September 9th, starting at 9pm. (When do they end? When everyone finally leaves!)

They are indeed popular. Last year I sat in on the Spring Framework one and enjoyed the close, unscripted discussions (not lectures). You should think about carving out some time for that!

Read more...

Spring guides make it easier to jump to core content

If you remember last year, we rolled out a powerful new website built top-to-bottom with Spring. It was fresh, new, and loaded with gobs of getting started guides.

Since then, the feedback has been overwhelmingly positive. We've had record traffic with a large portion visiting the guides. So what's new?

We recently added the ability to hide/show the build steps. Many people expressed the desire to skip project setup steps and instead jump to the core content. We listened and responded.

After reading over a guide, do you need Gradle or Maven build steps? No problem! Just click on the appropriate header, and the steps will expand and show you the extra bits. To top it off, the website uses HTML local storage to remember the choice you made. Surf to another guide and you'll see the same perspective.

Read more...

Building a RESTful quotation service with Spring

I was recently made aware that a public API we were using for one of our guides contained objectionable material. After confirming this, I immediately responded that we would pick another source. Wishing to avoid such an issue in the future, I decided the best solution was to build our own RESTful quote service. So I decided to use the best tools to do so, the Spring stack, and was able to migrate the very next day.

Picking your tools

To kick things off, I made a check list of what I knew would be the right tools for the job of creating a RESTful web service.

Read more...

Spring Data REST now comes with ALPS metadata

With the recent release of Spring Data's Evans M1 milestone, Spring Data REST now comes with support for ALPS metadata to describe the semantics of the resources exported.

ALPS is a data format for defining simple descriptions of application-level semantics, similar in complexity to HTML micro-formats. It also supports adding its metadata to existing media types. As of version 2.2 M1, Spring Data REST exposes JSON based ALPS resources that can help us navigate its resources. Let's see how!

We can start with a quick example. If you clone the TODO repo and run mvn spring-boot:run, you can navigate it to learn its values pretty easily.

Read more...

First community-written getting started guide is published

Greetings Spring community,

Today we have just published the first getting started guide written and submitted by a community member: Producing a SOAP web service.

Maciej Walkowiak crafted a guide that served his needs and decided to contribute to the community. It lined up with expressed interest in such a guide from others. Maciej used https://github.com/spring-guides/getting-started-guide as his template and submitted a pull request to it containing his crafted guide.

We were able to merge all of his commits into an independent repository, apply some editorial polish, and after final review, get it published today.

Read more...

Using new when.js 3.2.2 to build a front end for Spring Data REST

Greetings Spring community!

Roy Clarkson and I are presenting a talk at this year's SpringOne 2014 conference called Spring Data REST - Data Meets Hypermedia. We will explore how to quickly bridge the gap between a powerful Spring Data backend and a hypermedia enabled, RESTful front end.

In one part of the talk, we will delve into a javascript front end that lets the user takes pictures and upload them to a website. The website turns around and fetches images from the back end. By itself, this isn't that difficult thanks to the fully loaded RESTful API provided by Spring Data REST.

Read more...

Getting Started with Spring Data REST

Hot on the heels of Spring Data's Codd GA release, there is a new Getting Started guide for Spring Data REST, Accessing Data with REST. It shows you how to create up an application with a JPA backend and a RESTful, hypermedia-driven front end.

Spring Data REST does all the heavy lifting of building a powerful RESTful front end as well as writing the JPA queries for the back end. To top it off, the guide leverages Spring Boot so you are using the latest-and-greatest from the Spring team.

Cheers!

Read more...

It's easier than ever to create or contribute to a Getting Started Guide

Greetings Spring community!

We keep receiving feedback that Spring's Getting Started Guides are smash hit.

So far, we've migrated these guides to Asciidoctor. We have also grown our guides to include client-oriented ones. More are coming!

The final link in the chain of making these guides work in the long term are the navigational links in the sidebar of each guide. We are now using metadata to tag and link various guides together while also connecting them to relevant projects.

For example, if you visit Consuming a RESTful Web Service with AngularJS, you will see a sidebar that contains:

Read more...