Spring Security 3.2.0.RC2 Released

Spring Security 3.2.0.RC2 is now available from the SpringSource repository at http://repo.springsource.org. See here for a quick tutorial on resolving these artifacts via Maven.

What’s new?

The release resolves 80+ issues. Most of the issues for this release were fixing bug, adding documentation, and converting our documentation to Asciidoctor.

Refer to the recently added What’s new in Spring Security 3.2 to find all the highlights of this release. You will notice there are some nice features that have been added that I have not blogged about. Be sure to follow the links to see and links to details within the reference.

Read more...

Spring LDAP 2.0.0.M1 Released

I’m pleased to announce that Spring LDAP 2.0.0.M1 is now available from the SpringSource repository at http://repo.springsource.org. See here for a quick tutorial on resolving these artifacts via Maven.

What’s New?

The release adds lots of new functionality! Some of the highlights can be found below:

  • Spring Data Repository and QueryDSL support is now included in Spring LDAP.
  • Fluent LDAP query support has been added.
  • A custom XML namespace is now provided to simplify configuration of Spring LDAP.
  • Spring LDAP core has been updated with Java 5 features such as generics and varargs.
  • The ODM (Object-Directory Mapping) functionality has been moved to core and there are new methods in LdapOperations/LdapTemplate that uses this automatic translation to/from ODM-annotated classes.
Read more...

Spring Framework 4.0 RC1 available

Dear Spring community,

I’m pleased to announce the availability of our first Spring Framework 4.0 release candidate. This release completes our 4.0 feature set with several new features since M3:

  • full compatibility with recent OpenJDK 8 Developer Preview builds
  • first-class support for Groovy-based bean definitions (as known from Grails)
  • autowiring based on generic types (e.g. MyRepository<Customer>)
  • using Objenesis to create CGLIB proxy instances (allowing for constructor injection)
  • the introduction of a ScriptEvaluator mechanism (including JSR-223 support)
  • time zone resolution in Spring MVC (connected to JSR-310 and Joda-Time)
  • finer-grained configuration options for Spring MVC’s @ControllerAdvice
  • the introduction of MvcUriComponentsBuilder (inspired by Spring HATEOAS)
  • and last but not least, a lot of fine-tuning in Spring’s new WebSocket support
Read more...

Exception Handling in Spring MVC

Spring MVC provides several complimentary approaches to exception handling but, when teaching Spring MVC, I often find that my students are confused or not comfortable with them.

Today I’m going to show you the various options available. Our goal is to not handle exceptions explicitly in Controller methods where possible. They are a cross-cutting concern better handled separately in dedicated code.

There are three options: per exception, per controller or globally.

A demonstration application that shows the points discussed here can be found at
http://github.com/paulc4/mvc-exceptions. See Sample Application below for details.

Read more...