Spring Framework 4.1 - handling static web resources
This week, Juergen announced the Spring Framework 4.1 release candidate. Now is the time to test those new features and see how they can make your applications better!
One of those new features is the flexible resolution and transformation of static web resources. Spring framework already allows you to serve static resources using ResourceHttpRequestHandlers
. This feature gives you more power and new possibilities.
ResourceResolvers and ResourceTransformers
ResourceResolvers and ResourceTransformers are at the very core of this new feature.
ResourceResolvers
can resolve resources, given their URL path. They can also resolve the externally facing public URL path for clients to use, given their internal resource path. ResourceTransformers
…