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.
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" /> </property> ... </bean>
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
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.
The last bean in recipe 7.4 should read:
<bean id="adminRole" class="org.springframework.security.core.authority.GrantedAuthorityImpl"> <constructor-arg value="ROLE_ADMIN"/>
ContactService reference should be
At 1 you inject the
ContactMailSender, which for you is a proxy.
/sip13/portal/sample_conf/classes/spring/portal.properties is missing from the code distribution. You can get it at the GitHub site.