This example builds on spring-ex10-security-db2, where we integrated a role table with the prior example and use a Hibernate LinkTable. In this example, we restrict access to the "strategy" pages to users with the role "ROLE_ADMIN". We also update the LinkController to direct users to one of the three role specific home pages. This example uses Spring 4.0.2 and Spring Security 3.2.3, and uses java configuration files rather than XML.
This example has been validated with the following environment on MS Windows 7:
- Eclipse Kepler 1.1 Spring Tool Suite (STS) 3.4.0.RELEASE - for Kepler
- Java SDK 1.7.0_51 (separate install)
- Tomcat 7.0.50 (separate install)
- Maven 3.0.5 (separate install)
- MySQL 5.5.29