Spring in Practice


Updated October 24, 2014

Despite our best efforts, Spring in Practice contains a few errors. We’ll publish corrections here in the hope that doing so will help clear up any confusion that such errors engender. Please report errors to the book’s forum at the Manning site.

Chapter 2, page 60

In listing 2.14, the entityManagerFactory definition should have a JPA vendor adapter:

<bean id="entityManagerFactory" ...>
    <property name="jpaVendorAdapter">
        <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter" />

Chapter 3, page 93

Section 3.5.6 incorrectly states that we’ll discuss MultipartResolver in chapter 11 (purportedly about product catalogs, but in fact about CMDBs). It also says that we’ll discuss LocaleResolver and ThemeResolver in chapter 7 (claimed to be about user interfaces but is actually about ACLs).

We've removed the bullets and replaced them with the following text:
These are useful for improving the functionality, usability and visual design of your web-based user interfaces. You could, for instance, use the ThemeResolver to select a CSS stylesheet based on a user preference. While we don't cover these in the book, you can learn more about them by consulting the Spring Framework Reference Documentation.

Chapter 7, page 234

The last bean in recipe 7.4 should read:

<bean id="adminRole"
   <constructor-arg value="ROLE_ADMIN"/>

Chapter 8, page 260, first paragraph

The ContactService reference should be ContactMailSender.

At 1 you inject the ContactMailSender, which for you is a proxy.

Chapter 13

/sip13/portal/sample_conf/classes/spring/portal.properties is missing from the code distribution. You can get it at the GitHub site.