Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 6. Spring Security > Web Authorization Using URL Patterns

6.2. Web Authorization Using URL Patterns

Spring Security lets you define the URL patterns that need to be secured. You could, for example, decide to secure the URL path /admin and all of its subpages and files.

<http auto-config="true" session-fixation-protection="none" >
        <intercept-url pattern="/admin/**" access="ROLE_ADMIN" />
</http>


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial