Project Sagan: open-sourcing spring.io

Engineering | Chris Beams | March 27, 2014 | ...

We launched the spring.io site at last year's SpringOne/2GX, and today I'm glad to announce on behalf of the team that we're open-sourcing the Spring-based application that powers it.

We call the project Sagan, and it's been designed to serve as a reference for building modern web applications with Spring. The code is available now at github.com/spring-io/sagan, and it's easy to get started. Here's a short screencast to prove it:

!{iframe src="//player.vimeo.com/video/90126708" width="640"  height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen}{/iframe}


Over the coming weeks, we'll post a series of articles on the Sagan effort, exploring different aspects of the app, decisions behind its design, and chronicling its evolution. For example, while Sagan runs equally well today on JDK 7 and JDK 8, we're not yet taking advantage of Java 8 language features. As we do that, we'll blog about it here, and in the process demonstrate why we think Spring and Java 8 make such a great match.

In the meantime, take Sagan for a spin! For a start, you can get up and running locally, and then try deploying to Cloud Foundry at Pivotal Web Services.

Note: Register with the invitation code "sagan" for instantaneous account approval. The PWS team has made a limited number of these available, so it's first-come, first-served.

From there, you can explore the rest of the howto-style docs in the wiki, and we'd love it if you'd provide feedback along the way.

As GitHub's contributors graph shows, the Sagan project has already been a big team effort internally. Today, we couldn't be happier to invite everyone reading this post to join us. There is plenty to do, and pull requests are welcome!


UPDATE, May 16, 2014: A replay of the SpringOne2GX 2013 session, "spring.io inside and out" is also now available.

Spring Framework 4.0.3 released - with Java 8 support now production-ready

Releases | Juergen Hoeller | March 27, 2014 | ...

Dear Spring community,

It's my pleasure to announce that Spring Framework 4.0.3 is available. This is the first release of the framework after Java 8's launch last week; it is built with OpenJDK 8 GA now and includes the latest ASM 5.0.1 (with bytecode support at the JDK 8 GA level as well, superseding the custom ASM 4.2 fork that we were previously using).

http://projects.spring.io/spring-framework/

Spring Framework 4.0.3 also comes with significant enhancements in the WebSocket space, with a lot of real-life feedback incorporated back into the framework and its configuration options. It's…

Spring Data Redis 1.2.1 Released

Releases | Thomas Darimont | March 27, 2014 | ...

Dear Spring Community,

I am pleased to announce the release of Spring Data Redis 1.2.1! This maintenance release contains some bugfixes in RedisTemplate as well as in RedisCacheManager.

As always this version is tested against Java 6, 7 and 8, for compatibility with Redis 2.6 and 2.8 as well as Spring Framework 4.0.3. You can run this Jira Query for a complete list of changes.

We look forward to your feedback on the forum or in the issue tracker.

Cheers, your Spring Data Team!

Spring Security 3.2.3 Released

Releases | Rob Winch | March 26, 2014 | ...

Spring Security 3.2.3 has been released and is now available from Maven Central. This release brings a number of bug fixes including:

  • A fix to Java Configuration to work with Spring Boot. See SEC-2531
  • A fix to Java Configuration that when CSRF protection is disabled allows remembering the last page prior to authenticating when it is a POST to work with JSF. See SEC-2498

You can find additional details within the changelog .

This Week in Spring - March 25th, 2014

Engineering | Josh Long | March 26, 2014 | ...

Welcome to another installment of This Week in Spring! This week is going to be a crazy week, and I can't wait to see you on the other end of it next week! There are some BIG announcements coming! Keep your eyes glued to spring.io this week: So. Much. Win. Alright, with that out of the way, let's get to it!

Webinar Replay: Spring Framework 4.0 on Java 8

News | Pieter Humphrey | March 26, 2014 | ...

Speaker: Juergen Hoeller

Slides: https://speakerdeck.com/jhoeller/spring-framework-4-on-java-8

Spring has a track record of providing dedicated support for new Java generations in a timely fashion, and now it's right about time to go Java 8: With Spring Framework 4.0, we're providing in-depth support for all relevant OpenJDK 8 features, including lambda expressions, JSR-310 Date and Time, parameter name discovery, and java.util.concurrent enhancements. This talk will illustrate basic Spring Framework 4.0 concepts, and selected Java 8 features within Spring's programming model, exploring the impact on application architectures.

Learn more about Spring Framework at: http://projects.spring.io/spring-framework

and at

http://spring.io/guides

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

Spring MVC Test with WebDriver

Engineering | Rob Winch | March 26, 2014 | ...

In my second post I described how to use Spring MVC Test with HtmlUnit. In this post we will leverage additional abstractions within WebDriver to make things even easier.

Why WebDriver?

We can already use HtmlUnit and MockMvc, so why would we want to use WebDriver? WebDriver provides a very elegant API and allows us to easily organize our code. To better understand, let's explore an example.


NOTE Despite being a part of Selenium, WebDriver does not require a Selenium Server to run your tests.


Suppose we need to ensure that a message is created properly. The tests involve finding the html…

Webinar Replay: Spring LDAP 2.0.0

News | Pieter Humphrey | March 26, 2014 | ...

Speaker: Mattias Arthursson, Spring LDAP lead

Slides: https://speakerdeck.com/marthursson/spring-ldap-2-dot-0

The recently released 2.0 version has given the Spring LDAP project a significant facelift. With new features like Spring Data Repository and QueryDSL support, a fluent LDAP query builder, and XML namespace configuration, LDAP administration applications can now be built more efficiently than ever. This webinar will provide an overview of the goals and scope of Spring LDAP and demonstrate all the improvements in version 2.0, giving you plenty of hands-on tips along the way on how to make maximum use of the library.

Learn More about Spring LDAP at: http://projects.spring.io/spring-ldap

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

Spring MVC Test with HtmlUnit

Engineering | Rob Winch | March 25, 2014 | ...

In my previous post I introduced Spring Test MVC HtmlUnit and explained the motivation behind the project. In this post I will describe how to use Spring MVC Test with HtmlUnit.

Updating Dependencies

Before you use the project, you must ensure to update your dependencies. Instructions for both Maven and Gradle can be found on the site documentation.

Using HtmlUnit

Now that we have the correct dependencies, we can use HtmlUnit in our unit tests. Our example assumes you already have JUnit as a dependency. If you have not added it, please update your classpath accordingly. The complete code sample for using HtmlUnit and Spring MVC Test can be found in MockMvcHtmlUnitCreateMessageTest

SpringOne2GX 2013 Replay: Tips and Tricks for Client Side Performance

News | Pieter Humphrey | March 25, 2014 | ...

Recorded at SpringOne2GX 2013 in Santa Clara, CA

Speaker: Jeremy Grelle

As the complexity of web and mobile apps increases, so does the importance of ensuring that your client-side resources load and execute in an optimal and efficient manner. Differences in resource loading techniques can have a dramatic impact on how fast an application feels to your users, and can be the catalyst for whether they have a joyful or frustrating experience. This talk will discuss performance techniques aimed at keeping your users on the joyful end of this user experience spectrum. We'll take a look at:

  • Pragmatic tools for measuring client-side performance
  • Techniques for optimizing resources and their resulting impact
  • Approaches to maximizing dev-time happiness and production performance
  • Easy incorporation of these techniques into your everyday tool-chain
!{iframe width="560" height="315" src="//www.youtube.com/embed/wrdNdp1Dyrc" frameborder="0" allowfullscreen}{/iframe}

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