Empowering your apps with Spring Boot's property support

Engineering | Greg L. Turnquist | October 30, 2013 | ...

Spring Boot is continuing to gather steam. Last month I wrote Contributing to Spring Boot with a pull request. I peeled back the layers of Spring Boot to demonstrate it's incredible autoconfiguration features and CLI support.

In this post, I want to dig into Spring Boot's amazing support for properties. Properties are something that are small, not highly visible, yet can quickly strengthen your application in very practical ways. In this post, I'll walk through how I added property support to the Spring JMS support I coded in the previous blog post.

What are properties?

Properties are…

Webinar Replay: Modern Component Design with Spring

News | Chloe Jackson | October 29, 2013 | ...

Speaker: Juergen Hoeller

In recent years, the Spring Framework focuses on flexible and powerful Java-based configuration. This talk presents Spring as an annotation-oriented application framework, illustrating the rich set of features that Spring has to offer for modern component design. General component model trends will be discussed along with selected Spring feature highlights, such as standardized annotations for dependency injection, stereotypes, and declarative services such as validation and scheduling.

!{iframe width="420" height="315" src="//www.youtube.com/embed/iUT0YL34Seg" frameborder="0" allowfullscreen}{/iframe}

Webinar Replay: What You Can Do With Hadoop: Building Big Data Applications with Hadoop & Spring

News | Chloe Jackson | October 29, 2013 | ...

Speakers: Nikesh Shah, Mark Fisher, James Williams

At Pivotal we are bringing 2 open source projects together -- Hadoop and the very rapid and widely used Spring Java application development framework to help Big Data Applications. While Hadoop is proving to be the defacto foundation for storing and processing data, real-world scenarios require much more. Millions of developers are already using Spring to create high performing, easily testable, reusable code without any lock-in. Adding Spring into the Hadoop equation we take out the complexity of building big data applications. In this month's webinar we will explore how Spring XD (Xtreme Data) is addressing Big Data Application needs such as: High throughput distributed data ingestion into HDFS from a variety of input sources. Real-time analytics at ingestion time, e.g. gathering metrics and counting values. Hadoop workflow management via batch jobs. High throughput data export, e.g. from HDFS to a RDBMS or NoSQL database. This is a can't miss presentation for anyone wanting to understand design, configuration and deployment of Hadoop-powered applications.

!{iframe width="420" height="315" src="//www.youtube.com/embed/41sIhawjHE0" frameborder="0" allowfullscreen}{/iframe}

Webinar Replay: Bringing Spring Apps to the Web at the US Navy

News | Chloe Jackson | October 29, 2013 | ...

The US Navy needed a new content management system, but didn't want to re-implement their existing applications or abandon their investment in Spring and Grails.

What they needed was a CMS that let developers use their existing Spring skills to easily bring the Navy's applications to the web.

Campbell-Ewald, the Navy's digital agency, found that the best solution was Magnolia, an enterprise open source Java CMS that offers a unique Spring integration called Blossom.

In this recorded webinar, Campbell-Ewald Solutions Architect Matt Dertinger provides an overview of the requirements, challenges, tools and solutions for the project.

After this, Magnolia Senior Software Engineer Tobias Mattsson shows how Blossom lets developers extend Magnolia CMS and integrate existing Spring applications by writing ordinary Spring code. Learn more about Magnolia CMS and Blossom, including information on upcoming webinars and Blossom presentations. Also, check out Magnolia's latest Spring Tech Brief on Adding Enterprise Content Management to Spring with Blossom.

!{iframe width="420" height="315" src="//www.youtube.com/embed/y_v_pV-4Vqo" frameborder="0" allowfullscreen}{/iframe}

This Week in Spring - October 29th, 2013

Engineering | Josh Long | October 29, 2013 | ...

Welcome back to another installment of This Week in Spring!

If you're in the Bay Area, I hope you'll join me at 875 Howard St. in San Francisco at the Pivotal offices on the 5th floor at 5:30 both today and tomorrow. I'll be giving one talk each evening - one on building RESTful services with Spring, and the other a sort of abbreviated look at the latest and greatest in the Spring.IO platform. Also, the SpringOne2GX 2013 keynotes from day 1 and day 2 are now up for your enjoyment. Make sure to check out the Day 1 keynote around 1:13:40 to hear Pivotal Labs - hardcore Ruby developers, talk about their experience with Spring and Spring Boot.

As usual, we've got a lot to cover, so let's get to it!

  1. For everybody who is looking to quickly increase their Spring knowledge Spring Education is offering a nice end of the year discount on all Spring Training classes in November and December. Please use the following referral code during the registration process: springtime.
  2. At the Strata Conference + Hadoop World 2013, Pivotal announced that Spring for Apache Hadoop / Spring XD has been certified with Pivotal HD, Cloudera's CDH, and Hortonworks HDP products.
  3. Speaking of Spring XD - a new getting started guide on how to use Spring XD to monitor Twitter is now available - check it out!
  4. If you want to learn about Spring for Hadoop and Spring XD, check out the replay of the webinar, What You Can Do With Hadoop: Building Big Data Applications with Hadoop & Spring.
  5. Still Spring and Hadoop hungry? The SpringOne 2GX 2013 Day 2 Keynote Replay is now available -- hear Mark Pollack, Mark Fisher, Michael Minella and Graeme Rocher in their epic keynote ranging from Spring IO, Groovy/Grails, Spring and Hadoop, Big Data, Spring Batch and Integration.
  6. Join Juergen Hoeller for a Spring Webinar Replay: Modern Component Design with Spring from a very recent webinar!
  7. Catch up on the latest in Websockets with Rossen Stoyanchev in a webinar replay: Building WebSocket Browser Applications with Spring
  8. Spring MVC and web CMS users should check out this session from Campbell-Ewald and Magnolia on Bringing Spring Apps to the Web at the US Navy, brought to you by the Spring Team and Magnolia.
  9. On November 19th, I'll join C24 CEO John Davies for a talk, Dynamic Routing at 1 Million Per Second with Spring Integration where we'll discuss how to scale processing with C24's excellent integration technology and Spring Integration
  10. Join me on November 21st for a webinar introducing the latest and greatest coming out of the Spring family as part of Pivotal
  11. Our friend Petri Kainulainen is back at it again, this time with a post on how to add Spring MVC web application registration and login with the Spring Social and Spring Social Security modules.
  12. Nicolas Frankel has put together an interesting post: Dependency Injection and Rich Domain Objects are Compatible.
  13. Dan Woods is back and he's put together a post on creating a backend processor (service tier) with Spring Integration and RabbitMQ
  14. Spring Data ninja Oliver Gierke has announced that the Spring Data Babbage release train SR1 has been released. The release bundles a bunch of important enhancements and bug fixes and is a recommended upgrade. You can find all issues fixed in this release in our JIRA. This release train is named for Charles Babbage, who was a mathematician, philosopher, inventor and mechanical engineer, who is best remembered now for originating the concept of a programmable computer.

Spring Data Release Train Babbage - SR1 released

News | Oliver Drotbohm | October 25, 2013 | ...

The Spring Data team has just released the first service release for the Babbage release train. It includes the following modules:

The release bundles a bunch of important enhancements and bug fixes and is a recommended upgrade. You can find all issues fixed in this release in our JIRA.

The next step will be a first milestone of the Codd release train with a few great new features, especially for the MongoDB module. More details about that here

The spring.io site

Engineering | Chris Beams | October 23, 2013 | ...
$ curl -I springsource.org
HTTP/1.1 301 Moved Permanently
Content-length: 0
Date: Mon, 9 Sep 2013 19:30:00 PST
Location: http://spring.io

Chances are good that if you're reading this post you're well aware that springsource.org has been redesigned and relaunched as spring.io. We're happy to report that since the launch at SpringOne last month, reception for the new site has been positive and constructive. Thanks to all that have been providing feedback via @springcentral – please keep it coming!

If you are looking around for the first time, the all-new collection of guides is a good place to start. Keep in mind that each guide is backed by a GitHub repository, meaning you can clone everything locally and provide feedback via…

SpringOne2GX 2013 Day 2 Keynote

News | Chloe Jackson | October 23, 2013 | ...

Recorded at SpringOne 2GX 2013 live in Santa Clara, CA.

Speakers: Adrian Colyer, Graeme Rocher, Michael Minella, Mark Fisher, Mark Pollack

!{iframe width="420" height="315" src="//www.youtube.com/embed/QRHJCYSflUw" frameborder="0" allowfullscreen}{/iframe}

Webinar Replay: Building WebSocket Browser Applications with Spring

News | Chloe Jackson | October 23, 2013 | ...

Speaker: Rossen Stoyanchev

Slides: https://github.com/rstoyanchev/webinar-websocket-spring

Code: https://github.com/rstoyanchev/spring-websocket-portfolio

So, you've written a "Hello world!" WebSocket application or perhaps even a chat sample. You're able to exchange messages even in pre-Servlet 3.1 containers and pre-IE 10 browsers (that don't yet support WebSocket) thanks to the SockJS protocol and Spring's support for it. However a message is a blank page that can have any content. Whatever message format you choose, proprietary or standard, both client and server need to understand it as well as distinguish different kinds of messages. You need support for the publish-subscribe pattern central to messaging applications so you can broadcast messages to one or more subscribers. You need to incorporate security, validation, and so on. In short you need to build a real-world application. If you're used to web applications (and Spring MVC annotated controllers) you are familiar with the foundation that HTTP provides including URLs (nouns), HTTP methods (verbs), headers, parameters, and others. Imagine building an application without HTTP, just a socket. WebSocket gives you this brand new, exciting capability -- full duplex, two-way communication -- yet you no longer have an application-level protocol. Can an entire application be built around a single Endpoint class processing all messages, assuming a single WebSocket connection between browser and server? Join Rossen Stoyanchev as he demonstrates that, thankfully, the WebSocket protocol has a built-in sub-protocol mechanism.

!{iframe width="420" height="315" src="//www.youtube.com/embed/mmIza3L64Ic" frameborder="0" allowfullscreen}{/iframe}

This Week in Spring - October 22nd, 2013

Engineering | Josh Long | October 22, 2013 | ...

Welcome to another installment of This Week in Spring! This week, I'm in Singapore to talk to developers about the latest and greatest coming out of the Spring group at Pivotal as part of my participation in the Pivotal APJ Summit.

  1. Spring lead Juergen Hoeller will be doing a webinar called Modern Component Design with Spring on October 24th (2 days from now!) Be sure to be there, it's going to be awesome!
  2. On November 19th, I'll join C24 CEO John Davies for a talk, Dynamic Routing at 1 Million Per Second with Spring Integration where we'll discuss how to scale processing with C24's excellent integration technology and Spring Integration
  3. Join me on November 21st for a webinar introducing the latest and greatest coming out of the Spring family as part of Pivotal
  4. Our friend Xavier Padro is back at it again! This time, he's got a blog on using Spring Integration's RMI Channel Adapters
  5. Spring Data ninja Oliver Gierke has put up the slides to his talk on developing for Spring as part of Pivotal, looking at the tools and methodologies employed. This is a great read if you've ever wanted a look inside the chocolate factory..
  6. Spring Data ninja Oliver Gierke has put together a nice response to the question, "what is the difference between Spring HATEOAS and SpringData REST?" Nice question and great answer!
  7. Our pal Petri Kainulainen is at again, this time with a nice tutorial on Sping Data Solr.
  8. Groovy & Grails is now a 4-day class, see the full training program here .
  9. The JavaBeat blog has a nice introduction to how to use the @RequestHeader annotation in Spring MVC. Check it out!
  10. The Java Papers blog has a nice post on how to use a Spring MVC Handler Interceptor.
  11. The InterTech bkig has a nice post introducing Spring MVC's @SesssionAttribute.

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