Posts

Showing posts from July, 2012

Spring Security and Hibernate Integration

Introduction Table of Contents Introduction Configurations Introduction Spring security is the one of the best security framework for Java based web application. This tutorial demonstrates integration of spring security framework using Hibernate Annotations. Code snippets provided in this tutorial will helps you to quickly add to your application. This Tutorial doesn’t cover basics of spring & spring security in details.you can get those details from official sites. Configurations Spring-security.xml looks like below. Create appropriate pages. Role and URL access configured as shown below spring-security.xml <http auto-config = " true " access-denied-page = " /accessdenied.jsp " > <intercept-url pattern = " /tester/* " access = " ROLE_TESTER " /> <intercept-url pattern = " /admin/* " access = " ROLE_ADMIN