JSF & Java Blog

Discussion on Java and JSF, including Spring, Maven, Eclipse and Jenkins

Posts Tagged / Spring

Guava ImmutableMap Spring bean

I previously had some maps defined as Spring beans in my applicationContext.xml file. An example of a basic Map is shown below: I wanted to make these all immutable and so Guava’s ImmutableMap seeemed the logical Map type to use. However, ImmutableMap is abstract so you can’t just do the following: Instead, thanks to help […]


Spring MVC 406 status code from AJAX requests

Recently after upgrading from Spring MVC 3.1.2.RELEASE to 3.2.0.RELEASE, all of our AJAX requests stopped working, and instead returned a 406 status code (see here for status code meanings). We were using Jackson 2.1.2, the following snippet from the pom.xml file shows the two dependencies: There were some changes made with the 3.2.0.RELEASE in regards […]