Tech Kraft

Documentum, AWS, Java, Ruby on Rails, Linux, Windows, App Servers


Setting up Spring Security in Eclipse – III

Using Method based Security

 Scenario: Only an account holder can deposit or withdraw money. Only an employee can charge fees to the account, and only a manager can allow overdraft on an account.

 ———————————————————————

Modify WEB-INF/applicationContext-security.xml by adding the following line under the root element:

<global-method-security secured-annotations=”enabled” />

 ———————————————————————

Create a new xml called WEB-INF/applicationContext-security.xml which is mentioned in web.xml

 ———————————————————————

Use terminal to go the root of the project, and type:

ant deploy

 This will deploy the web application to the tomcat server and available at http://localhost:8080/springacldemo

The error logs will be available at $CATALINA_HOME/logs/Catalina.out and $CATALINA_HOME/logs/localhost.yyyy-mm-dd.log

 



Leave a comment

About Me

Senior Software Engineer professional with over 16 years of success with multiple open source technologies and various Content Management platforms and solutions.

Proven technical abilities through numerous projects involving enterprise web application design and development, application installation, configuration and support, and workflow and collaboration system designs.

  • Ability to learn new technologies and platforms quickly and apply them to the task at hand.
  • Excellent analytical skills, and strong communication and collaboration abilities.
  • Technical emphasis in including but not limited to Java, Ruby on Rails, Documentum and Alfresco
    in both Linux and Windows based environments

Newsletter