8000 GitHub - dtr-trading/spring-ex14-auth: Spring MVC (4.0.2) / Spring Security (3.2) - Authorization: User/Role/Permission
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dtr-trading/spring-ex14-auth

Repository files navigation

spring-ex14-auth

This example builds on spring-ex13-auth, where we added method level role based security to our strategy controller. We only add one line to our security config and one line to our controller in order to enable this security. In this example, we will add unique permissions to all of our controller and service layer methods, and store these permissions in a permissions table in the database. This permissions table will use a link table to associate permissions with roles. 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:

  1. Eclipse Kepler 1.1 Spring Tool Suite (STS) 3.4.0.RELEASE - for Kepler
  2. Java SDK 1.7.0_51 (separate install)
  3. Tomcat 7.0.50 (separate install)
  4. Maven 3.0.5 (separate install)
  5. MySQL 5.5.29

About

Spring MVC (4.0.2) / Spring Security (3.2) - Authorization: User/Role/Permission

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0