Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 22nd, 2012  |  syntax: None  |  size: 0.52 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to handle 404 with Spring Security?
  2. <security:http auto-config="true" use-expressions="true" >
  3.     <security:form-login login-processing-url="/static/j_spring_security_check" login-page="/login" authentication-failure-url="/login?login_error=t"  default-target-url="/home"/>
  4.     <security:intercept-url pattern="/home" access="isAuthenticated()" />
  5.     <security:intercept-url pattern="/home/try" access="hasRole('ROLE_EDITOR')"/>
  6.     <security:access-denied-handler error-page="/accessDenied"/>
  7.        </security:http>